1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 04:54:18 +00:00

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

This commit is contained in:
Christophe Dumez 2012-08-12 17:57:17 +03:00
parent e62abdd651
commit 9c61acc95d

View File

@ -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();