mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Forgot to move the torrent data when its label is deleted
This commit is contained in:
parent
7a2af0f506
commit
da796c80c3
2 changed files with 6 additions and 2 deletions
|
@ -919,9 +919,12 @@ void TransferListWidget::removeLabelFromRows(QString label) {
|
|||
for(int i=0; i<listModel->rowCount(); ++i) {
|
||||
if(listModel->data(listModel->index(i, TR_LABEL)) == label) {
|
||||
QString hash = getHashFromRow(i);
|
||||
QString old_label = proxyModel->data(listModel->index(i, TR_LABEL)).toString();
|
||||
listModel->setData(listModel->index(i, TR_LABEL), "", Qt::DisplayRole);
|
||||
TorrentPersistentData::saveLabel(hash, "");
|
||||
emit torrentChangedLabel(label, "");
|
||||
// Update save path if necessary
|
||||
BTSession->changeLabelInTorrentSavePath(BTSession->getTorrentHandle(hash), old_label, label);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue