Fix crash when adding external ssh key to entry

This commit is contained in:
Jonathan White 2020-03-18 22:42:48 -04:00
parent 2022a5e65c
commit d41a37c9bc

View File

@ -667,7 +667,7 @@ bool EditEntryWidget::getOpenSSHKey(OpenSSHKey& key, bool decrypt)
KeeAgentSettings settings;
toKeeAgentSettings(settings);
if (!settings.keyConfigured()) {
if (!m_entry || !settings.keyConfigured()) {
return false;
}