mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
Fix possible crash due to labels (closes #64)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user