Browse Source

Fix crash when adding a new label

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
48585bb049
  1. 2
      src/transferlistwidget.cpp

2
src/transferlistwidget.cpp

@ -918,7 +918,7 @@ void TransferListWidget::askNewLabelForSelection() {
bool invalid; bool invalid;
do { do {
invalid = false; 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 (ok && !label.isEmpty()) {
if(misc::isValidFileSystemName(label)) { if(misc::isValidFileSystemName(label)) {
setSelectionLabel(label); setSelectionLabel(label);

Loading…
Cancel
Save