summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-01 09:32:12 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-01 09:32:12 (GMT)
commita4e94ee57cd823250114872838fd4d2bea8a76a9 (patch)
tree063abe32c84da951630c9a86232d1ec9387e21ff
parent37c47d5d020316b1090a04412cf152940568e797 (diff)
Use old filename here
-rw-r--r--src/ksieveui/widgets/managesievewidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ksieveui/widgets/managesievewidget.cpp b/src/ksieveui/widgets/managesievewidget.cpp
index 1ec3cae..4b816a1 100644
--- a/src/ksieveui/widgets/managesievewidget.cpp
+++ b/src/ksieveui/widgets/managesievewidget.cpp
@@ -382,7 +382,7 @@ void ManageSieveWidget::slotRenameScript()
return;
}
- const QString newName = QInputDialog::getText(this, i18n("New Script Name"), i18n("Script Name:"), QLineEdit::Normal, u.fileName());
+ const QString newName = QInputDialog::getText(this, i18n("New Script Name"), i18n("Script Name:"), QLineEdit::Normal, currentItem->text(0));
if (newName.trimmed().isEmpty()) {
return;
}