Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM IncidenceEditor
Commits
5d57c001
Commit
5d57c001
authored
May 04, 2017
by
Laurent Montel
Browse files
Minor optimization
parent
7008b8fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/templatemanagementdialog.cpp
View file @
5d57c001
...
...
@@ -179,8 +179,9 @@ void TemplateManagementDialog::slotRemoveTemplate()
void
TemplateManagementDialog
::
updateButtons
()
{
m_base
.
m_buttonAdd
->
setEnabled
(
true
);
m_base
.
m_buttonRemove
->
setEnabled
(
m_base
.
m_listBox
->
count
()
!=
0
);
m_base
.
m_buttonApply
->
setEnabled
(
m_base
.
m_listBox
->
count
()
!=
0
);
const
bool
isNotEmpty
=
m_base
.
m_listBox
->
count
()
!=
0
;
m_base
.
m_buttonRemove
->
setEnabled
(
isNotEmpty
);
m_base
.
m_buttonApply
->
setEnabled
(
isNotEmpty
);
}
void
TemplateManagementDialog
::
slotApplyTemplate
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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