Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
libksieve
Commits
1b4bfde7
Commit
1b4bfde7
authored
Jun 14, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add info when we try to create a script with empty name
parent
133a40d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/ksieveui/widgets/managesievewidget.cpp
src/ksieveui/widgets/managesievewidget.cpp
+3
-0
No files found.
src/ksieveui/widgets/managesievewidget.cpp
View file @
1b4bfde7
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment