diff options
author | Saturneric <[email protected]> | 2021-06-24 09:51:58 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-06-24 09:51:58 +0000 |
commit | e0f72fd046da0ad32f04cba98164a82b7819c9ac (patch) | |
tree | 937c9ba0a15a0d7df6fa98b76093cb897ec6ed91 /src/ui/keypair_details/KeyPairSubkeyTab.cpp | |
parent | Merge branch 'develop' into main (diff) | |
download | GpgFrontend-e0f72fd046da0ad32f04cba98164a82b7819c9ac.tar.gz GpgFrontend-e0f72fd046da0ad32f04cba98164a82b7819c9ac.zip |
Update Document.
Fix Bugs in UI.
Diffstat (limited to 'src/ui/keypair_details/KeyPairSubkeyTab.cpp')
-rw-r--r-- | src/ui/keypair_details/KeyPairSubkeyTab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/keypair_details/KeyPairSubkeyTab.cpp b/src/ui/keypair_details/KeyPairSubkeyTab.cpp index 84042323..c5647553 100644 --- a/src/ui/keypair_details/KeyPairSubkeyTab.cpp +++ b/src/ui/keypair_details/KeyPairSubkeyTab.cpp @@ -35,7 +35,7 @@ KeyPairSubkeyTab::KeyPairSubkeyTab(GpgME::GpgContext *ctx, const GpgKey &key, QW auto uidButtonsLayout = new QGridLayout(); auto addSubkeyButton = new QPushButton(tr("Generate A New Subkey")); - if(!mKey.is_private_key) { + if(!mKey.is_private_key || !mKey.has_master_key) { addSubkeyButton->setDisabled(true); setHidden(addSubkeyButton); } |