Commit 5d57c001 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization

parent 7008b8fd
......@@ -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()
......
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