mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Code clean up
This commit is contained in:
@@ -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, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user