mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-13 01:57:07 -07:00
Code clean up
This commit is contained in:
parent
8ddbdd34ed
commit
35aee18112
4 changed files with 48 additions and 40 deletions
|
@ -1009,7 +1009,8 @@ void TransferListWidget::setSelectionLabel(QString label) {
|
|||
TorrentPersistentData::saveLabel(hash, label);
|
||||
emit torrentChangedLabel(old_label, label);
|
||||
// Update save path if necessary
|
||||
BTSession->changeLabelInTorrentSavePath(BTSession->getTorrentHandle(hash), old_label, label);
|
||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||
BTSession->changeLabelInTorrentSavePath(h, old_label, label);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1021,7 +1022,8 @@ void TransferListWidget::removeLabelFromRows(QString label) {
|
|||
TorrentPersistentData::saveLabel(hash, "");
|
||||
emit torrentChangedLabel(label, "");
|
||||
// Update save path if necessary
|
||||
BTSession->changeLabelInTorrentSavePath(BTSession->getTorrentHandle(hash), label, "");
|
||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||
BTSession->changeLabelInTorrentSavePath(h, label, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue