diff options
Diffstat (limited to 'src/ui/dialog/import_export/KeyServerImportDialog.cpp')
-rw-r--r-- | src/ui/dialog/import_export/KeyServerImportDialog.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ui/dialog/import_export/KeyServerImportDialog.cpp b/src/ui/dialog/import_export/KeyServerImportDialog.cpp index 03ee6c4a..8e01bd4b 100644 --- a/src/ui/dialog/import_export/KeyServerImportDialog.cpp +++ b/src/ui/dialog/import_export/KeyServerImportDialog.cpp @@ -422,10 +422,14 @@ void KeyServerImportDialog::slot_import_finished( // refresh the key database emit SignalKeyImported(); - // show details - (new KeyImportDetailDialog(current_gpg_context_channel_, std::move(info), - this)) - ->exec(); + auto* connection = new QMetaObject::Connection; + *connection = connect( + UISignalStation::GetInstance(), + &UISignalStation::SignalKeyDatabaseRefreshDone, this, [=]() { + (new KeyImportDetailDialog(current_gpg_context_channel_, info, this)); + QObject::disconnect(*connection); + delete connection; + }); } void KeyServerImportDialog::set_loading(bool status) { |