diff --git a/src/gui/entry/EntryModel.cpp b/src/gui/entry/EntryModel.cpp index 04273bd8d..369a4abb0 100644 --- a/src/gui/entry/EntryModel.cpp +++ b/src/gui/entry/EntryModel.cpp @@ -23,6 +23,7 @@ #include "core/DatabaseIcons.h" #include "core/Entry.h" #include "core/Group.h" +#include "core/Metadata.h" EntryModel::EntryModel(QObject* parent) : QAbstractTableModel(parent) @@ -85,6 +86,9 @@ void EntryModel::setEntryList(const QList& entries) Q_FOREACH (Database* db, databases) { Q_ASSERT(db); m_allGroups.append(db->rootGroup()->groupsRecursive(true)); + if (db->metadata()->recycleBin()) { + m_allGroups.removeOne(db->metadata()->recycleBin()); + } } Q_FOREACH (const Group* group, m_allGroups) {