aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/ADSKsPicker.cpp
diff options
context:
space:
mode:
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