aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-11-19 15:15:56 +0000
committersaturneric <[email protected]>2024-11-19 15:15:56 +0000
commit29b46733fedf884cfac1f77888e9310f30631718 (patch)
treea984e97739ab931c08da6c7cdec42a20921e7476 /src/ui/dialog/keypair_details/KeyPairOperaTab.cpp
parentfeat: remove unused codes (diff)
downloadGpgFrontend-29b46733fedf884cfac1f77888e9310f30631718.tar.gz
GpgFrontend-29b46733fedf884cfac1f77888e9310f30631718.zip
feat: add ui some restrictions when primary key not exists
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyPairOperaTab.cpp')
-rw-r--r--src/ui/dialog/keypair_details/KeyPairOperaTab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp b/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp
index cd8eb335..ff796d6c 100644
--- a/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp
+++ b/src/ui/dialog/keypair_details/KeyPairOperaTab.cpp
@@ -105,7 +105,7 @@ KeyPairOperaTab::KeyPairOperaTab(int channel, const QString& key_id,
advance_h_box_layout->addWidget(key_server_opera_button);
if (Module::IsModuleActivate(kPaperKeyModuleID)) {
- if (!m_key_.IsPrivateKey() || !m_key_.IsHasMasterKey()) {
+ if (!m_key_.IsPrivateKey()) {
auto* import_paper_key_button = new QPushButton(tr("Import A Paper Key"));
import_paper_key_button->setStyleSheet("text-align:center;");
connect(import_paper_key_button, &QPushButton::clicked, this,