From 9c61acc95d406381b675a0b4ab2c47a381a51c9c Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 12 Aug 2012 17:57:17 +0300 Subject: [PATCH] Fix crash when using unauthorized characters in label names (closes #19) --- src/transferlistfilterswidget.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transferlistfilterswidget.h b/src/transferlistfilterswidget.h index 786a3df9e..ab5363229 100644 --- a/src/transferlistfilterswidget.h +++ b/src/transferlistfilterswidget.h @@ -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();