Add "Restore Entries" feature

This commit is contained in:
Janek Bevendorff 2021-11-10 01:09:30 +01:00
parent e5822974ac
commit 70e62d90db
10 changed files with 63 additions and 1 deletions

View file

@ -1381,6 +1381,14 @@ QString Entry::resolveUrl(const QString& url) const
return {};
}
Group* Entry::previousParentGroup()
{
if (!database() || !database()->rootGroup()) {
return nullptr;
}
return database()->rootGroup()->findGroupByUuid(m_data.previousParentGroupUuid);
}
const Group* Entry::previousParentGroup() const
{
if (!database() || !database()->rootGroup()) {