From ae6acc4ca27d334a84e3e61a62028acb6526f80f Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 4 Jan 2010 19:44:03 +0000 Subject: [PATCH] - Fix possible issue with label counts when deleting a torrent --- src/transferlistfilterswidget.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transferlistfilterswidget.h b/src/transferlistfilterswidget.h index 8c9f9fce4..5df6e04a7 100644 --- a/src/transferlistfilterswidget.h +++ b/src/transferlistfilterswidget.h @@ -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);