From cd1192b409399f97ce71f43f8011434ffd37f0a2 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Wed, 3 Aug 2016 23:45:04 +0200 Subject: [PATCH] Allow deleting the recycle bin. Closes #46 --- src/gui/DatabaseWidget.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index 7191c8e28..92720e660 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -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