mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-28 00:39:43 -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)
|
void DatabaseWidget::updateGroupActions(Group* group)
|
||||||
{
|
{
|
||||||
bool inSearch = m_lastGroup;
|
m_actionGroupNew->setEnabled(group);
|
||||||
m_actionGroupNew->setEnabled(group && !inSearch);
|
m_actionGroupEdit->setEnabled(group);
|
||||||
m_actionGroupEdit->setEnabled(group && !inSearch);
|
m_actionGroupDelete->setEnabled(group && canDeleteCurrentGoup());
|
||||||
m_actionGroupDelete->setEnabled(group && !inSearch && canDeleteCurrentGoup());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DatabaseWidget::updateEntryActions()
|
void DatabaseWidget::updateEntryActions()
|
||||||
|
Loading…
Reference in New Issue
Block a user