diff options
author | saturneric <[email protected]> | 2024-11-19 15:15:56 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-11-19 15:15:56 +0000 |
commit | 29b46733fedf884cfac1f77888e9310f30631718 (patch) | |
tree | a984e97739ab931c08da6c7cdec42a20921e7476 /src/ui/dialog/keypair_details/KeyPairDetailTab.cpp | |
parent | feat: remove unused codes (diff) | |
download | GpgFrontend-29b46733fedf884cfac1f77888e9310f30631718.tar.gz GpgFrontend-29b46733fedf884cfac1f77888e9310f30631718.zip |
feat: add ui some restrictions when primary key not exists
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyPairDetailTab.cpp')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyPairDetailTab.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/dialog/keypair_details/KeyPairDetailTab.cpp b/src/ui/dialog/keypair_details/KeyPairDetailTab.cpp index bdc2c9e8..820e9963 100644 --- a/src/ui/dialog/keypair_details/KeyPairDetailTab.cpp +++ b/src/ui/dialog/keypair_details/KeyPairDetailTab.cpp @@ -285,6 +285,9 @@ void KeyPairDetailTab::slot_refresh_key_info() { } else if (key_.IsRevoked()) { slot_refresh_notice(":/icons/warning.png", tr("Warning: The primary key has been revoked.")); + } else if (key_.IsPrivateKey() && !key_.IsHasMasterKey()) { + slot_refresh_notice(":/icons/warning.png", + tr("Warning: The primary key is not exists.")); } else { slot_query_key_publish_state(); } |