mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Fix crash when using unauthorized characters in label names (closes #19)
This commit is contained in:
parent
1046c816bf
commit
c1806b099a
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue