Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Spets <toni.spets@iki.fi>2020-04-04 09:00:49 +0300
committerJonathan White <support@dmapps.us>2020-05-19 16:23:41 +0300
commita1b4a3f8b75781d2fbef2cbacf706c8cf9bc3cb0 (patch)
tree7816b6f57474fa301a632d2179a67af038624de3 /src/gui/DatabaseWidget.cpp
parent9e17d52e8e1f98ec3490ddd0d2ea107cdcaf6a65 (diff)
SSH Agent: Track which database owns a key for remove-on-lock
Fixes #4532
Diffstat (limited to 'src/gui/DatabaseWidget.cpp')
-rw-r--r--src/gui/DatabaseWidget.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp
index 310f141d7..980b8d32a 100644
--- a/src/gui/DatabaseWidget.cpp
+++ b/src/gui/DatabaseWidget.cpp
@@ -221,8 +221,8 @@ DatabaseWidget::DatabaseWidget(QSharedPointer<Database> db, QWidget* parent)
#ifdef WITH_XC_SSHAGENT
if (sshAgent()->isEnabled()) {
- connect(this, SIGNAL(databaseLocked()), sshAgent(), SLOT(databaseModeChanged()));
- connect(this, SIGNAL(databaseUnlocked()), sshAgent(), SLOT(databaseModeChanged()));
+ connect(this, SIGNAL(databaseLockRequested()), sshAgent(), SLOT(databaseLocked()));
+ connect(this, SIGNAL(databaseUnlocked()), sshAgent(), SLOT(databaseUnlocked()));
}
#endif
@@ -739,7 +739,7 @@ void DatabaseWidget::addToAgent()
OpenSSHKey key;
if (settings.toOpenSSHKey(currentEntry, key, true)) {
- SSHAgent::instance()->addIdentity(key, settings);
+ SSHAgent::instance()->addIdentity(key, settings, database()->uuid());
} else {
m_messageWidget->showMessage(key.errorString(), MessageWidget::Error);
}