From 511fa5d9884866e24d4084f974c839d420d9b569 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Tue, 6 Apr 2010 16:09:06 +0000 Subject: [PATCH] BUGFIX: Fix crash when adding a new torrent label --- Changelog | 1 + src/transferlistwidget.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 0262edc0e..4a7dea588 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ * Unreleased - Christophe Dumez - v2.2.5 - BUGFIX: Fix default width of file name column in torrent content + - BUGFIX: Fix crash when adding a new torrent label * Tue Apr 06 2010 - Christophe Dumez - v2.2.4 - BUGFIX: Fix possible crash when adding a torrent 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);