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

@@ -1,5 +1,6 @@
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - 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 <chris@qbittorrent.org> - v2.2.4
- BUGFIX: Fix possible crash when adding a torrent

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