summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-11-01 09:31:34 (GMT)
committerMontel Laurent <montel@kde.org>2016-11-01 09:31:34 (GMT)
commit37c47d5d020316b1090a04412cf152940568e797 (patch)
tree2da4d9132bfa6c961b66865b9a61133b5573e810
parentd2b6045714588a008d3e37ab93b9fb65cee284ac (diff)
Avoid to rename as empty filename
-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 2f5c827..1ec3cae 100644
--- a/src/ksieveui/widgets/managesievewidget.cpp
+++ b/src/ksieveui/widgets/managesievewidget.cpp
@@ -383,7 +383,7 @@ void ManageSieveWidget::slotRenameScript()
}
const QString newName = QInputDialog::getText(this, i18n("New Script Name"), i18n("Script Name:"), QLineEdit::Normal, u.fileName());
- if (newName.isEmpty()) {
+ if (newName.trimmed().isEmpty()) {
return;
}