aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/ADSKsPicker.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-16 00:53:22 +0000
committersaturneric <[email protected]>2025-04-16 00:53:22 +0000
commit2027237de006cb9fa40a73365cbbc8911572969c (patch)
tree4c05dec8b1d7ae7b2afa3b7056052cb7968af9f8 /src/ui/dialog/ADSKsPicker.cpp
parentfeat: support key groups (diff)
downloadGpgFrontend-2027237de006cb9fa40a73365cbbc8911572969c.tar.gz
GpgFrontend-2027237de006cb9fa40a73365cbbc8911572969c.zip
fix: found bugs
Diffstat (limited to 'src/ui/dialog/ADSKsPicker.cpp')
-rw-r--r--src/ui/dialog/ADSKsPicker.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ui/dialog/ADSKsPicker.cpp b/src/ui/dialog/ADSKsPicker.cpp
index a8afb9bf..9d9fa4c3 100644
--- a/src/ui/dialog/ADSKsPicker.cpp
+++ b/src/ui/dialog/ADSKsPicker.cpp
@@ -51,8 +51,9 @@ ADSKsPicker::ADSKsPicker(int channel,
auto* confirm_button = new QPushButton(tr("Confirm"));
auto* cancel_button = new QPushButton(tr("Cancel"));
- connect(confirm_button, &QPushButton::clicked,
- [=]() { this->accepted_ = true; });
+ connect(confirm_button, &QPushButton::clicked, this, [=]() {
+ emit SignalSubkeyChecked(tree_view_->GetAllCheckedSubKey());
+ });
connect(confirm_button, &QPushButton::clicked, this, &QDialog::accept);
connect(cancel_button, &QPushButton::clicked, this, &QDialog::reject);
@@ -87,10 +88,4 @@ ADSKsPicker::ADSKsPicker(int channel,
this->activateWindow();
}
-auto ADSKsPicker::GetCheckedSubkeys() -> QContainer<GpgSubKey> {
- return tree_view_->GetAllCheckedSubKey();
-}
-
-auto ADSKsPicker::GetStatus() const -> bool { return this->accepted_; }
-
} // namespace GpgFrontend::UI