aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/keypair_details/KeyPairUIDTab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/keypair_details/KeyPairUIDTab.cpp')
-rw-r--r--src/ui/keypair_details/KeyPairUIDTab.cpp16
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