aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/KeyMgmt.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-03-12 10:00:36 +0000
committerSaturneric <[email protected]>2022-03-12 10:00:36 +0000
commit1755ba16fe9d5d475094fa0cde873f6d8b642549 (patch)
treed8ff7763fee7f6db013d19acc1160e9d59407b77 /src/ui/KeyMgmt.cpp
parent<feat>(core, ui): Provides the ability to handle folders (diff)
downloadGpgFrontend-1755ba16fe9d5d475094fa0cde873f6d8b642549.tar.gz
GpgFrontend-1755ba16fe9d5d475094fa0cde873f6d8b642549.zip
<refactor, fix>(core, ui): Some tweaks and fixes
Diffstat (limited to 'src/ui/KeyMgmt.cpp')
-rwxr-xr-xsrc/ui/KeyMgmt.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/KeyMgmt.cpp b/src/ui/KeyMgmt.cpp
index 56097355..57d8ba1f 100755
--- a/src/ui/KeyMgmt.cpp
+++ b/src/ui/KeyMgmt.cpp
@@ -526,6 +526,9 @@ void KeyMgmt::SlotExportAsOpenSSHFormat() {
}
void KeyMgmt::SlotImportKeyPackage() {
+
+ LOG(INFO) << "Importing key package...";
+
auto key_package_file_name = QFileDialog::getOpenFileName(
this, _("Import Key Package"), {},
QString(_("Key Package")) + " (*.gfepack);;All Files (*)");
@@ -539,6 +542,8 @@ void KeyMgmt::SlotImportKeyPackage() {
GpgImportInformation info;
+ LOG(INFO) << "Importing key package: " << key_package_file_name.toStdString();
+
if (KeyPackageOperator::ImportKeyPackage(key_package_file_name.toStdString(),
key_file_name.toStdString(), info)) {
emit SignalStatusBarChanged(QString(_("key(s) imported")));