aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/import_export/KeyImportDetailDialog.cpp2
-rw-r--r--src/ui/widgets/KeyList.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/dialog/import_export/KeyImportDetailDialog.cpp b/src/ui/dialog/import_export/KeyImportDetailDialog.cpp
index 2db0d6e5..6d93c796 100644
--- a/src/ui/dialog/import_export/KeyImportDetailDialog.cpp
+++ b/src/ui/dialog/import_export/KeyImportDetailDialog.cpp
@@ -64,7 +64,7 @@ KeyImportDetailDialog::KeyImportDetailDialog(
this->setMinimumSize(QSize(600, 300));
this->adjustSize();
- movePosition2CenterOfParent();
+ setPosCenterOfScreen();
this->setModal(true);
this->show();
}
diff --git a/src/ui/widgets/KeyList.cpp b/src/ui/widgets/KeyList.cpp
index 895b6b01..73328885 100644
--- a/src/ui/widgets/KeyList.cpp
+++ b/src/ui/widgets/KeyList.cpp
@@ -520,8 +520,11 @@ void KeyList::dragEnterEvent(QDragEnterEvent* event) {
}
void KeyList::import_keys(const QByteArray& in_buffer) {
+ LOG_D() << "importing keys to channel:" << current_gpg_context_channel_;
auto result = GpgKeyImportExporter::GetInstance(current_gpg_context_channel_)
.ImportKey(GFBuffer(in_buffer));
+ emit SignalRefreshDatabase();
+
(new KeyImportDetailDialog(current_gpg_context_channel_, result, this));
}