diff options
author | Saturneric <[email protected]> | 2021-11-29 02:57:43 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-11-29 02:57:43 +0000 |
commit | d7e953b25a28a846b0aafa7003f33432b7e107f5 (patch) | |
tree | 479f77c85a5fca956a58891eaa87c9afb224db86 /src/ui/keypair_details/KeyPairUIDTab.cpp | |
parent | Fix some known issues in basic operations and file operations. (diff) | |
download | GpgFrontend-d7e953b25a28a846b0aafa7003f33432b7e107f5.tar.gz GpgFrontend-d7e953b25a28a846b0aafa7003f33432b7e107f5.zip |
Fix Known Bugs.
1. Import Keys.
2. Import Keys From Server.
3. UID Management.
Diffstat (limited to '')
-rw-r--r-- | src/ui/keypair_details/KeyPairUIDTab.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/ui/keypair_details/KeyPairUIDTab.cpp b/src/ui/keypair_details/KeyPairUIDTab.cpp index 075db08e..24461011 100644 --- a/src/ui/keypair_details/KeyPairUIDTab.cpp +++ b/src/ui/keypair_details/KeyPairUIDTab.cpp @@ -23,15 +23,16 @@ */ #include "ui/keypair_details/KeyPairUIDTab.h" + #include "gpg/function/GpgKeyGetter.h" #include "gpg/function/GpgKeyManager.h" #include "gpg/function/UidOperator.h" +#include "ui/SignalStation.h" namespace GpgFrontend::UI { KeyPairUIDTab::KeyPairUIDTab(const std::string& key_id, QWidget* parent) - : QWidget(parent), - mKey(std::move(GpgKeyGetter::GetInstance().GetKey(key_id))) { + : QWidget(parent), mKey(GpgKeyGetter::GetInstance().GetKey(key_id)) { createUIDList(); createSignList(); createManageUIDMenu(); @@ -79,6 +80,10 @@ KeyPairUIDTab::KeyPairUIDTab(const std::string& key_id, QWidget* parent) connect(uidList, SIGNAL(itemSelectionChanged()), this, SLOT(slotRefreshSigList())); + // Key Database Refresh + connect(SignalStation::GetInstance(), SIGNAL(KeyDatabaseRefresh()), this, + SLOT(slotRefreshKey())); + setLayout(vboxLayout); setAttribute(Qt::WA_DeleteOnClose, true); @@ -367,7 +372,7 @@ UIDArgsListPtr KeyPairUIDTab::getUIDSelected() { uids->push_back(buffered_uids[i].uid()); } } - return std::move(uids); + return uids; } SignIdArgsListPtr KeyPairUIDTab::getSignSelected() { @@ -501,5 +506,10 @@ void KeyPairUIDTab::slotDelSign() { } } } +void KeyPairUIDTab::slotRefreshKey() { + this->mKey = GpgKeyGetter::GetInstance().GetKey(this->mKey.id()); + this->slotRefreshUIDList(); + this->slotRefreshSigList(); +} } // namespace GpgFrontend::UI |