aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/keypair_details/KeyUIDSignDialog.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-06 20:38:05 +0000
committerSaturneric <[email protected]>2021-12-06 20:38:05 +0000
commit4f9ee73ffdda5a495d25ebf4f769a4c43aa78295 (patch)
tree7ef532525a250c485d95c1df5e4b432e169ec53c /src/ui/keypair_details/KeyUIDSignDialog.cpp
parentImprove UI & Functions (diff)
downloadGpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.tar.gz
GpgFrontend-4f9ee73ffdda5a495d25ebf4f769a4c43aa78295.zip
Test & Improve UI
Diffstat (limited to '')
-rw-r--r--src/ui/keypair_details/KeyUIDSignDialog.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ui/keypair_details/KeyUIDSignDialog.cpp b/src/ui/keypair_details/KeyUIDSignDialog.cpp
index 78e4900c..d9592c56 100644
--- a/src/ui/keypair_details/KeyUIDSignDialog.cpp
+++ b/src/ui/keypair_details/KeyUIDSignDialog.cpp
@@ -97,20 +97,19 @@ KeyUIDSignDialog::KeyUIDSignDialog(const GpgKey& key, UIDArgsListPtr uid,
}
void KeyUIDSignDialog::slotSignKey(bool clicked) {
- LOG(INFO) << "KeyUIDSignDialog::slotSignKey Called";
+ LOG(INFO) << "Called";
// Set Signers
auto key_ids = mKeyList->getChecked();
auto keys = GpgKeyGetter::GetInstance().GetKeys(key_ids);
- LOG(INFO) << "KeyUIDSignDialog::slotSignKey Key Info Got";
- auto expires = std::make_unique<boost::gregorian::date>(
- boost::posix_time::from_time_t(expiresEdit->dateTime().toTime_t())
- .date());
+ LOG(INFO) << "Key Info Got";
+ auto expires = std::make_unique<boost::posix_time::ptime>(
+ boost::posix_time::from_time_t(expiresEdit->dateTime().toTime_t()));
- LOG(INFO) << "KeyUIDSignDialog::slotSignKey Sign Start";
+ LOG(INFO) << "Sign Start";
for (const auto& uid : *mUids) {
- LOG(INFO) << "KeyUIDSignDialog::slotSignKey Sign UID" << uid;
+ LOG(INFO) << "Sign UID" << uid;
// Sign For mKey
if (!GpgKeyManager::GetInstance().signKey(mKey, *keys, uid, expires)) {
QMessageBox::critical(