diff options
author | saturneric <[email protected]> | 2025-04-12 10:33:06 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-12 10:33:06 +0000 |
commit | 2c84a775f444300cad8911ceb8e742fe138b5f6d (patch) | |
tree | fb6dbed1230a5497808c504d77a3e71dfbf43e80 /src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp | |
parent | feat: add ui support for adsk features (diff) | |
download | GpgFrontend-2c84a775f444300cad8911ceb8e742fe138b5f6d.tar.gz GpgFrontend-2c84a775f444300cad8911ceb8e742fe138b5f6d.zip |
fix: wrong ui dialog order after switching apps
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp b/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp index 526b9dd5..a85f05f5 100644 --- a/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp +++ b/src/ui/dialog/keypair_details/KeyPairSubkeyTab.cpp @@ -38,8 +38,8 @@ #include "core/utils/IOUtils.h" #include "ui/UISignalStation.h" #include "ui/UserInterfaceUtils.h" +#include "ui/dialog/ADSKsPicker.h" #include "ui/dialog/RevocationOptionsDialog.h" -#include "ui/dialog/SubKeysPicker.h" namespace GpgFrontend::UI { @@ -59,7 +59,7 @@ KeyPairSubkeyTab::KeyPairSubkeyTab(int channel, const QString& key_id, auto* uid_buttons_layout = new QGridLayout(); - auto* add_subkey_button = new QPushButton(tr("Generate A New Subkey")); + auto* add_subkey_button = new QPushButton(tr("New Subkey")); auto* add_adsk_button = new QPushButton(tr("Add ADSK(s)")); if (!key_.IsPrivateKey() || !key_.IsHasMasterKey()) { add_subkey_button->setDisabled(true); @@ -69,8 +69,8 @@ KeyPairSubkeyTab::KeyPairSubkeyTab(int channel, const QString& key_id, add_adsk_button->hide(); } - uid_buttons_layout->addWidget(add_subkey_button, 0, 1); - uid_buttons_layout->addWidget(add_adsk_button, 1, 1); + uid_buttons_layout->addWidget(add_subkey_button, 0, 0); + uid_buttons_layout->addWidget(add_adsk_button, 0, 1); auto* base_layout = new QVBoxLayout(); @@ -295,7 +295,7 @@ void KeyPairSubkeyTab::slot_add_adsk() { except_key_ids.append(sub_key.GetID()); } - auto* dialog = new SubKeysPicker( + auto* dialog = new ADSKsPicker( current_gpg_context_channel_, [=](GpgAbstractKey* key) { return !except_key_ids.contains(key->ID()); }, this); |