diff options
author | saturneric <[email protected]> | 2024-10-26 13:43:14 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-10-26 13:43:14 +0000 |
commit | 24c28eb752aa611dd1670f3fa7ab6b358b052f1b (patch) | |
tree | 6a4f9af003fa4a86b7d7e29a965e37a231951092 /src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp | |
parent | fix: thread concurrent crash issue (diff) | |
download | GpgFrontend-24c28eb752aa611dd1670f3fa7ab6b358b052f1b.tar.gz GpgFrontend-24c28eb752aa611dd1670f3fa7ab6b358b052f1b.zip |
fix: test basic operations of multi key db and solve issues
Diffstat (limited to 'src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp b/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp index 2d0c0401..398dab40 100644 --- a/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp +++ b/src/ui/dialog/keypair_details/KeyNewUIDDialog.cpp @@ -34,9 +34,14 @@ #include "ui/UISignalStation.h" namespace GpgFrontend::UI { -KeyNewUIDDialog::KeyNewUIDDialog(const KeyId& key_id, QWidget* parent) +KeyNewUIDDialog::KeyNewUIDDialog(int channel, const KeyId& key_id, + QWidget* parent) : GeneralDialog(typeid(KeyNewUIDDialog).name(), parent), - m_key_(GpgKeyGetter::GetInstance().GetKey(key_id)) { + current_gpg_context_channel_(channel), + m_key_(GpgKeyGetter::GetInstance(current_gpg_context_channel_) + .GetKey(key_id)) { + assert(m_key_.IsGood()); + name_ = new QLineEdit(); name_->setMinimumWidth(240); email_ = new QLineEdit(); |