mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-26 15:59:50 -05:00
Improve update of enabled state of group actions.
This commit is contained in:
parent
6fb6e1dc82
commit
adbce87ccd
@ -601,10 +601,9 @@ void DatabaseWidget::clearLastGroup(Group* group)
|
||||
|
||||
void DatabaseWidget::updateGroupActions(Group* group)
|
||||
{
|
||||
bool inSearch = m_lastGroup;
|
||||
m_actionGroupNew->setEnabled(group && !inSearch);
|
||||
m_actionGroupEdit->setEnabled(group && !inSearch);
|
||||
m_actionGroupDelete->setEnabled(group && !inSearch && canDeleteCurrentGoup());
|
||||
m_actionGroupNew->setEnabled(group);
|
||||
m_actionGroupEdit->setEnabled(group);
|
||||
m_actionGroupDelete->setEnabled(group && canDeleteCurrentGoup());
|
||||
}
|
||||
|
||||
void DatabaseWidget::updateEntryActions()
|
||||
|
Loading…
Reference in New Issue
Block a user