diff options
author | Saturneric <[email protected]> | 2021-08-19 09:50:38 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-08-19 09:50:38 +0000 |
commit | ce5296d5c5aae6270dd237d03fed4588f276266d (patch) | |
tree | 619905633d9204d0304a22cd0c45598092dc980a /src/ui/settings/SettingsGeneral.cpp | |
parent | Bugs Fixed; Code Modified; (diff) | |
download | GpgFrontend-ce5296d5c5aae6270dd237d03fed4588f276266d.tar.gz GpgFrontend-ce5296d5c5aae6270dd237d03fed4588f276266d.zip |
Bugs Fixed;
Diffstat (limited to 'src/ui/settings/SettingsGeneral.cpp')
-rw-r--r-- | src/ui/settings/SettingsGeneral.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/settings/SettingsGeneral.cpp b/src/ui/settings/SettingsGeneral.cpp index c0e3d75f..9cee3bc8 100644 --- a/src/ui/settings/SettingsGeneral.cpp +++ b/src/ui/settings/SettingsGeneral.cpp @@ -109,7 +109,8 @@ GeneralTab::GeneralTab(GpgME::GpgContext *ctx, QWidget *parent) keyIds.insert("", tr("<none>")); for (const auto &keyid : *mKeyList->getAllPrivateKeys()) { - auto &key = mCtx->getKeyById(keyid); + auto key = mCtx->getKeyById(keyid); + if (!key.good) continue; keyIds.insert(key.id, key.uids.first().uid); } for (const auto &k : keyIds.keys()) { |