BUGFIX: Fix crash when adding a new torrent label

This commit is contained in:
Christophe Dumez
2010-04-06 16:09:06 +00:00
parent 5694c8aa8b
commit 511fa5d988
2 changed files with 2 additions and 1 deletions

View File

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