aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/settings/SettingsGeneral.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-08-19 09:50:38 +0000
committerSaturneric <[email protected]>2021-08-19 09:50:38 +0000
commitce5296d5c5aae6270dd237d03fed4588f276266d (patch)
tree619905633d9204d0304a22cd0c45598092dc980a /src/ui/settings/SettingsGeneral.cpp
parentBugs Fixed; Code Modified; (diff)
downloadGpgFrontend-ce5296d5c5aae6270dd237d03fed4588f276266d.tar.gz
GpgFrontend-ce5296d5c5aae6270dd237d03fed4588f276266d.zip
Bugs Fixed;
Diffstat (limited to 'src/ui/settings/SettingsGeneral.cpp')
-rw-r--r--src/ui/settings/SettingsGeneral.cpp3
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()) {