diff options
author | Saturneric <[email protected]> | 2023-04-04 16:53:27 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2023-04-04 16:53:27 +0000 |
commit | efd456a22c113997922c0b866e9aa9351dbc0846 (patch) | |
tree | b75fcd3306afb6ae62a74c45578bc3cec15ef45e /src/ui/UserInterfaceUtils.cpp | |
parent | feat: improve the ui of gnupg controller (diff) | |
download | GpgFrontend-efd456a22c113997922c0b866e9aa9351dbc0846.tar.gz GpgFrontend-efd456a22c113997922c0b866e9aa9351dbc0846.zip |
fix: improve some parts that is not good
Diffstat (limited to '')
-rw-r--r-- | src/ui/UserInterfaceUtils.cpp | 3 |
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); |