diff options
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(); } |