mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Fix crash when using unauthorized characters in label names (closes #19)
This commit is contained in:
@@ -322,7 +322,7 @@ protected slots:
|
||||
}
|
||||
}
|
||||
|
||||
void addLabel(QString label) {
|
||||
void addLabel(QString& label) {
|
||||
label = fsutils::toValidFileSystemName(label.trimmed());
|
||||
if (label.isEmpty() || customLabels.contains(label)) return;
|
||||
QListWidgetItem *newLabel = new QListWidgetItem();
|
||||
|
||||
Reference in New Issue
Block a user