diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index daa37460c..6e4c0686c 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -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()