Commit 1b4bfde7 authored by Laurent Montel's avatar Laurent Montel 😁

Add info when we try to create a script with empty name

parent 133a40d6
......@@ -223,6 +223,9 @@ void ManageSieveWidget::slotNewScript()
i18n("unnamed"), &ok);
name = name.trimmed();
if (!ok || name.isEmpty()) {
if (ok && name.isEmpty()) {
KMessageBox::error(this, i18n("Empty name is not a valid name"), i18n("New Script"));
}
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment