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