aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/details/VerifyDetailsDialog.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-10-26 13:43:14 +0000
committersaturneric <[email protected]>2024-10-26 13:43:14 +0000
commit24c28eb752aa611dd1670f3fa7ab6b358b052f1b (patch)
tree6a4f9af003fa4a86b7d7e29a965e37a231951092 /src/ui/dialog/details/VerifyDetailsDialog.cpp
parentfix: thread concurrent crash issue (diff)
downloadGpgFrontend-24c28eb752aa611dd1670f3fa7ab6b358b052f1b.tar.gz
GpgFrontend-24c28eb752aa611dd1670f3fa7ab6b358b052f1b.zip
fix: test basic operations of multi key db and solve issues
Diffstat (limited to 'src/ui/dialog/details/VerifyDetailsDialog.cpp')
-rw-r--r--src/ui/dialog/details/VerifyDetailsDialog.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ui/dialog/details/VerifyDetailsDialog.cpp b/src/ui/dialog/details/VerifyDetailsDialog.cpp
index 7ca5c8f4..e833ea01 100644
--- a/src/ui/dialog/details/VerifyDetailsDialog.cpp
+++ b/src/ui/dialog/details/VerifyDetailsDialog.cpp
@@ -33,9 +33,12 @@
namespace GpgFrontend::UI {
-VerifyDetailsDialog::VerifyDetailsDialog(QWidget* parent, GpgError error,
- GpgVerifyResult result)
- : QDialog(parent), m_result_(result), error_(error) {
+VerifyDetailsDialog::VerifyDetailsDialog(QWidget* parent, int channel,
+ GpgError error, GpgVerifyResult result)
+ : QDialog(parent),
+ current_gpg_context_channel_(channel),
+ m_result_(result),
+ error_(error) {
this->setWindowTitle(tr("Signatures Details"));
main_layout_ = new QHBoxLayout();
@@ -82,7 +85,8 @@ void VerifyDetailsDialog::slot_refresh() {
}
// Add information box for every single key
for (const auto& signature : signatures) {
- auto* detail_box = new VerifyKeyDetailBox(signature, this);
+ auto* detail_box =
+ new VerifyKeyDetailBox(current_gpg_context_channel_, signature, this);
m_vbox_layout->addWidget(detail_box);
}