Skip to content

Commit

Permalink
Allow deleting the recycle bin.
Browse files Browse the repository at this point in the history
  • Loading branch information
debfx committed Aug 3, 2016
1 parent bf2fd63 commit cd1192b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/DatabaseWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -873,8 +873,7 @@ bool DatabaseWidget::dbHasKey() const
bool DatabaseWidget::canDeleteCurrentGroup() const
{
bool isRootGroup = m_db->rootGroup() == m_groupView->currentGroup();
bool isRecycleBin = m_db->metadata()->recycleBin() == m_groupView->currentGroup();
return !isRootGroup && !isRecycleBin;
return !isRootGroup;
}

bool DatabaseWidget::isInSearchMode() const
Expand Down

0 comments on commit cd1192b

Please sign in to comment.