diff options
author | saturneric <[email protected]> | 2024-11-24 19:24:30 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-11-24 19:24:30 +0000 |
commit | 2b777624bdd91230d9cdef8ed48276efa3719fea (patch) | |
tree | 17992a94c3d5ce6e4a25f239332b1c04b7bda5d7 /src | |
parent | feat: improve info prompt at private key exporting (diff) | |
download | GpgFrontend-2b777624bdd91230d9cdef8ed48276efa3719fea.tar.gz GpgFrontend-2b777624bdd91230d9cdef8ed48276efa3719fea.zip |
fix: solve key list drag and drop refreshing issue
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/dialog/import_export/KeyImportDetailDialog.cpp | 2 | ||||
-rw-r--r-- | src/ui/widgets/KeyList.cpp | 3 |
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)); } |