From 29352d97b3ebf709258332c4d2cf69eac933f73f Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Thu, 26 Mar 2026 15:00:26 +0000 Subject: [PATCH] fix(core): Destroy temporary QCoreApplication before creating the real one --- src/apps/deskflow-core/deskflow-core.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/apps/deskflow-core/deskflow-core.cpp b/src/apps/deskflow-core/deskflow-core.cpp index e4d1b37ea..3da8edd3d 100644 --- a/src/apps/deskflow-core/deskflow-core.cpp +++ b/src/apps/deskflow-core/deskflow-core.cpp @@ -45,9 +45,10 @@ App *createApp(const CoreArgParser &parser, EventQueue &events, const QString &p int main(int argc, char **argv) { #if defined(Q_OS_WIN) - // HACK to make sure settings gets the correct qApp path - QCoreApplication m(argc, argv); - m.deleteLater(); + { + // HACK to make sure settings gets the correct qApp path + QCoreApplication m(argc, argv); + } ArchMiscWindows::setInstanceWin32(GetModuleHandle(nullptr)); #endif