mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-25 18:56:34 +03:00
- Fix possible issue with label counts when deleting a torrent
This commit is contained in:
parent
641c6f0132
commit
ae6acc4ca2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue