mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Fix possible crash due to labels (closes #64)
This commit is contained in:
parent
06c8e658aa
commit
cf7bc882f5
1 changed files with 2 additions and 0 deletions
|
@ -447,6 +447,8 @@ protected slots:
|
|||
if (!label.isEmpty()) {
|
||||
if (!customLabels.contains(label)) {
|
||||
addLabel(label);
|
||||
// addLabel may have changed the label, update the model accordingly.
|
||||
torrentItem->setData(TorrentModelItem::TR_LABEL, label);
|
||||
}
|
||||
// Update label counter
|
||||
Q_ASSERT(customLabels.contains(label));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue