Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDE Pim
Commits
df5ba9b1
Commit
df5ba9b1
authored
Sep 15, 2013
by
Laurent Montel
😁
Browse files
Be sure to not create empty group
parent
772fbdf9
Changes
1
Hide whitespace changes
Inline
Side-by-side
mailcommon/snippets/snippetdialog.cpp
View file @
df5ba9b1
...
...
@@ -104,10 +104,10 @@ void SnippetDialog::slotTextChanged()
bool
SnippetDialog
::
snippetIsValid
()
const
{
if
(
mUi
->
groupWidget
->
isVisible
()
)
return
(
!
mUi
->
nameEdit
->
text
().
isEmpty
()
&&
!
mUi
->
groupBox
->
currentText
().
isEmpty
()
);
return
(
!
mUi
->
nameEdit
->
text
().
trimmed
().
isEmpty
()
&&
!
mUi
->
groupBox
->
currentText
().
trimmed
().
isEmpty
()
);
else
return
(
!
mUi
->
nameEdit
->
text
().
isEmpty
()
);
return
(
!
mUi
->
nameEdit
->
text
().
trimmed
().
isEmpty
()
);
}
void
SnippetDialog
::
slotReturnPressed
()
...
...
Write
Preview
Supports
Markdown
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