Browse Source

Fix crash when using unauthorized characters in label names (closes #19)

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

2
src/transferlistfilterswidget.h

@ -322,7 +322,7 @@ protected slots:
} }
} }
void addLabel(QString label) { void addLabel(QString& label) {
label = fsutils::toValidFileSystemName(label.trimmed()); label = fsutils::toValidFileSystemName(label.trimmed());
if (label.isEmpty() || customLabels.contains(label)) return; if (label.isEmpty() || customLabels.contains(label)) return;
QListWidgetItem *newLabel = new QListWidgetItem(); QListWidgetItem *newLabel = new QListWidgetItem();

Loading…
Cancel
Save