mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-08-26 13:42:37 +00:00
Fix possible crash due to labels (closes #64)
This commit is contained in:
parent
06c8e658aa
commit
cf7bc882f5
@ -447,6 +447,8 @@ protected slots:
|
|||||||
if (!label.isEmpty()) {
|
if (!label.isEmpty()) {
|
||||||
if (!customLabels.contains(label)) {
|
if (!customLabels.contains(label)) {
|
||||||
addLabel(label);
|
addLabel(label);
|
||||||
|
// addLabel may have changed the label, update the model accordingly.
|
||||||
|
torrentItem->setData(TorrentModelItem::TR_LABEL, label);
|
||||||
}
|
}
|
||||||
// Update label counter
|
// Update label counter
|
||||||
Q_ASSERT(customLabels.contains(label));
|
Q_ASSERT(customLabels.contains(label));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user