mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Merge pull request #1408 from hifi/fix/sshagent-recyclebin
Ignore SSH keys in Recycle Bin, fixes #1396
This commit is contained in:
commit
5e30214e4c
@ -217,8 +217,14 @@ void SSHAgent::databaseModeChanged(DatabaseWidget::Mode mode)
|
||||
} else if (mode == DatabaseWidget::ViewMode && !m_keys.contains(uuid.toHex())) {
|
||||
for (Entry* e : widget->database()->rootGroup()->entriesRecursive()) {
|
||||
|
||||
if (!e->attachments()->hasKey("KeeAgent.settings"))
|
||||
if (widget->database()->metadata()->recycleBinEnabled()
|
||||
&& e->group() == widget->database()->metadata()->recycleBin()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!e->attachments()->hasKey("KeeAgent.settings")) {
|
||||
continue;
|
||||
}
|
||||
|
||||
KeeAgentSettings settings;
|
||||
settings.fromXml(e->attachments()->value("KeeAgent.settings"));
|
||||
|
Loading…
Reference in New Issue
Block a user