diff options
author | saturneric <[email protected]> | 2023-12-24 06:08:21 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-24 06:08:21 +0000 |
commit | baae835db98f3b088120572a1803afdce221db00 (patch) | |
tree | 1ca45fbefe53d81f78c234d8c0701a5bda7e6d69 /src/ui/UserInterfaceUtils.cpp | |
parent | feat: improve core interfaces of encrypt and decrypt (diff) | |
download | GpgFrontend-baae835db98f3b088120572a1803afdce221db00.tar.gz GpgFrontend-baae835db98f3b088120572a1803afdce221db00.zip |
fix: test the initialization of gui application
Diffstat (limited to 'src/ui/UserInterfaceUtils.cpp')
-rw-r--r-- | src/ui/UserInterfaceUtils.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ui/UserInterfaceUtils.cpp b/src/ui/UserInterfaceUtils.cpp index 713911e8..838e4fbe 100644 --- a/src/ui/UserInterfaceUtils.cpp +++ b/src/ui/UserInterfaceUtils.cpp @@ -233,9 +233,15 @@ void CommonUtils::WaitForOpera(QWidget *parent, connect(dialog, &QDialog::finished, &looper, &QEventLoop::quit); connect(dialog, &QDialog::finished, dialog, &QDialog::deleteLater); - opera([dialog]() { dialog->accept(); }); - dialog->show(); + + opera([dialog]() { + SPDLOG_DEBUG("called operating waiting cb, dialog: {}", + static_cast<void *>(dialog)); + dialog->close(); + dialog->accept(); + }); + looper.exec(); } |