diff options
author | Saturneric <[email protected]> | 2023-03-31 08:28:29 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-03-31 08:28:29 +0000 |
commit | 676220f4846a3f2161daaa38a67933453c9f56b6 (patch) | |
tree | b9af17bc1e65aceaa33c652053ba5d44a1481d06 /src/ui/dialog/settings/SettingsKeyServer.cpp | |
parent | feat: improve ui when gnupg is offline (diff) | |
download | GpgFrontend-676220f4846a3f2161daaa38a67933453c9f56b6.tar.gz GpgFrontend-676220f4846a3f2161daaa38a67933453c9f56b6.zip |
fix: solve known ui issues
Diffstat (limited to 'src/ui/dialog/settings/SettingsKeyServer.cpp')
-rw-r--r-- | src/ui/dialog/settings/SettingsKeyServer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/dialog/settings/SettingsKeyServer.cpp b/src/ui/dialog/settings/SettingsKeyServer.cpp index 8719ab9a..83bd2c80 100644 --- a/src/ui/dialog/settings/SettingsKeyServer.cpp +++ b/src/ui/dialog/settings/SettingsKeyServer.cpp @@ -284,6 +284,11 @@ void KeyserverTab::slot_test_listed_key_server() { Thread::TaskRunnerGetter::GetInstance() .GetTaskRunner(Thread::TaskRunnerGetter::kTaskRunnerType_Network) ->PostTask(task); + + QEventLoop loop; + connect(task, &Thread::Task::SignalTaskEnd, &loop, &QEventLoop::quit); + connect(waiting_dialog, &QProgressDialog::canceled, &loop, &QEventLoop::quit); + loop.exec(); } void KeyserverTab::contextMenuEvent(QContextMenuEvent* event) { |