mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-13 01:57:07 -07:00
Several fixes to the new torrent model (still buggy)
This commit is contained in:
parent
af562ecf89
commit
9c67aaf641
6 changed files with 18 additions and 67 deletions
|
@ -649,7 +649,7 @@ void TransferListWidget::setSelectionLabel(QString label) {
|
|||
Q_ASSERT(!hash.isEmpty());
|
||||
const int row = getRowFromHash(hash);
|
||||
const QString old_label = listModel->data(listModel->index(row, TorrentModelItem::TR_LABEL)).toString();
|
||||
listModel->setData(listModel->index(row, TorrentModelItem::TR_LABEL), QVariant(label));
|
||||
listModel->setData(listModel->index(row, TorrentModelItem::TR_LABEL), QVariant(label), Qt::DisplayRole);
|
||||
// Update save path if necessary
|
||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||
BTSession->changeLabelInTorrentSavePath(h, old_label, label);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue