aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/KeyServerImportDialog.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-12-06 22:05:21 +0000
committerSaturneric <[email protected]>2021-12-07 05:38:52 +0000
commit1a2c3d6bc0b2feb4b286cc1dbe7b2cd5afcb69ba (patch)
tree081ed8abe91ade5809b41f29ffa823a4f37cf798 /src/ui/KeyServerImportDialog.cpp
parentTest & Improve UI (diff)
downloadGpgFrontend-1a2c3d6bc0b2feb4b286cc1dbe7b2cd5afcb69ba.tar.gz
GpgFrontend-1a2c3d6bc0b2feb4b286cc1dbe7b2cd5afcb69ba.zip
Add Translate & Fix Bugs.
Diffstat (limited to 'src/ui/KeyServerImportDialog.cpp')
-rw-r--r--src/ui/KeyServerImportDialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/KeyServerImportDialog.cpp b/src/ui/KeyServerImportDialog.cpp
index 2b814693..844f2ae5 100644
--- a/src/ui/KeyServerImportDialog.cpp
+++ b/src/ui/KeyServerImportDialog.cpp
@@ -505,12 +505,13 @@ void KeyServerImportDialog::importKeys(ByteArrayPtr in_data) {
GpgImportInformation result =
GpgKeyImportExportor::GetInstance().ImportKey(std::move(in_data));
emit signalKeyImported();
+ QWidget* _parent = qobject_cast<QWidget*>(parent());
if (mAutomatic) {
- auto dialog = new KeyImportDetailDialog(result, true, nullptr);
+ auto dialog = new KeyImportDetailDialog(result, true, _parent);
dialog->show();
this->accept();
} else {
- auto dialog = new KeyImportDetailDialog(result, false, this);
+ auto dialog = new KeyImportDetailDialog(result, false, _parent);
dialog->exec();
}
}