From 48585bb049a7f60512b6d627d0a363076127f145 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 6 Apr 2010 16:06:25 +0000 Subject: [PATCH] Fix crash when adding a new label --- src/transferlistwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transferlistwidget.cpp b/src/transferlistwidget.cpp index 9e50dc4e1..a8db899f8 100644 --- a/src/transferlistwidget.cpp +++ b/src/transferlistwidget.cpp @@ -918,7 +918,7 @@ void TransferListWidget::askNewLabelForSelection() { bool invalid; do { invalid = false; - const QString &label = QInputDialog::getText(this, tr("New Label"), tr("Label:"), QLineEdit::Normal, label, &ok); + const QString &label = QInputDialog::getText(this, tr("New Label"), tr("Label:"), QLineEdit::Normal, "", &ok); if (ok && !label.isEmpty()) { if(misc::isValidFileSystemName(label)) { setSelectionLabel(label);