aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/UserInterfaceUtils.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2023-04-04 16:53:27 +0000
committerSaturneric <[email protected]>2023-04-04 16:53:27 +0000
commitefd456a22c113997922c0b866e9aa9351dbc0846 (patch)
treeb75fcd3306afb6ae62a74c45578bc3cec15ef45e /src/ui/UserInterfaceUtils.cpp
parentfeat: improve the ui of gnupg controller (diff)
downloadGpgFrontend-efd456a22c113997922c0b866e9aa9351dbc0846.tar.gz
GpgFrontend-efd456a22c113997922c0b866e9aa9351dbc0846.zip
fix: improve some parts that is not good
Diffstat (limited to '')
-rw-r--r--src/ui/UserInterfaceUtils.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/UserInterfaceUtils.cpp b/src/ui/UserInterfaceUtils.cpp
index dcc14f50..80b6f482 100644
--- a/src/ui/UserInterfaceUtils.cpp
+++ b/src/ui/UserInterfaceUtils.cpp
@@ -127,7 +127,10 @@ void process_operation(QWidget *parent, const std::string &waiting_title,
QApplication::connect(process_task, &Thread::Task::SignalTaskEnd, dialog,
&QDialog::close);
+ QApplication::connect(process_task, &Thread::Task::SignalTaskEnd, dialog,
+ &QDialog::deleteLater);
+ // a looper to wait for the operation
QEventLoop looper;
QApplication::connect(process_task, &Thread::Task::SignalTaskEnd, &looper,
&QEventLoop::quit);