Browse Source

- Fix possible issue with label counts when deleting a torrent

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
ae6acc4ca2
  1. 2
      src/transferlistfilterswidget.h

2
src/transferlistfilterswidget.h

@ -359,7 +359,7 @@ protected slots: @@ -359,7 +359,7 @@ protected slots:
void torrentAboutToBeDeleted(QModelIndex index) {
Q_ASSERT(index.isValid());
if(!index.isValid()) return;
QString label = transferList->model()->index(index.row(), TR_LABEL).data(Qt::DisplayRole).toString().trimmed();
QString label = transferList->getSourceModel()->index(index.row(), TR_LABEL).data(Qt::DisplayRole).toString().trimmed();
if(!label.isEmpty()) {
// Update label counter
int i = customLabels.indexOf(label);

Loading…
Cancel
Save