Browse Source

Fix possible crash due to labels (closes #64)

adaptive-webui-19844
Christophe Dumez 12 years ago
parent
commit
cf7bc882f5
  1. 2
      src/transferlistfilterswidget.h

2
src/transferlistfilterswidget.h

@ -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…
Cancel
Save