mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-29 19:06:55 -05:00
Select group when adding credentials from browser extension (#2637)
This commit is contained in:
parent
779b529da2
commit
891f67a1cd
10 changed files with 178 additions and 11 deletions
|
|
@ -257,6 +257,25 @@ Entry* Group::lastTopVisibleEntry() const
|
|||
return m_lastTopVisibleEntry;
|
||||
}
|
||||
|
||||
bool Group::isRecycled()
|
||||
{
|
||||
Group* group = this;
|
||||
if (!group->database()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
do {
|
||||
if (group->m_parent && group->m_db->metadata()) {
|
||||
if (group->m_parent == group->m_db->metadata()->recycleBin()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
group = group->m_parent;
|
||||
} while (group && group->m_parent && group->m_parent != group->m_db->rootGroup());
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Group::isExpired() const
|
||||
{
|
||||
return m_data.timeInfo.expires() && m_data.timeInfo.expiryTime() < Clock::currentDateTimeUtc();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue