diff --git a/src/gui/entry/EntryModel.cpp b/src/gui/entry/EntryModel.cpp index 7f8510953..00000af42 100644 --- a/src/gui/entry/EntryModel.cpp +++ b/src/gui/entry/EntryModel.cpp @@ -136,6 +136,11 @@ QVariant EntryModel::data(const QModelIndex& index, int role) const return entry->group()->name(); } break; + case ParentGroupPath: + if (entry->group()) { + return entry->group()->fullPath(); + } + break; case Title: result = entry->resolveMultiplePlaceholders(entry->title()); if (attr->isReference(EntryAttributes::TitleKey)) { @@ -367,6 +372,8 @@ QVariant EntryModel::headerData(int section, Qt::Orientation orientation, int ro switch (section) { case ParentGroup: return tr("Group"); + case ParentGroupPath: + return tr("Group full path"); case Title: return tr("Title"); case Username: @@ -404,6 +411,8 @@ QVariant EntryModel::headerData(int section, Qt::Orientation orientation, int ro switch (section) { case ParentGroup: return tr("Group name"); + case ParentGroupPath: + return tr("Group full path"); case Title: return tr("Entry title"); case Username: @@ -434,8 +443,6 @@ QVariant EntryModel::headerData(int section, Qt::Orientation orientation, int ro return tr("Has TOTP"); case Color: return tr("Background Color"); - case ParentGroupPath: - return tr("Group full path"); } }