fix(core): Destroy temporary QCoreApplication before creating the real one

This commit is contained in:
Nick Bolton 2026-03-26 15:00:26 +00:00
parent 8a77e5f130
commit 29352d97b3

View file

@ -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();
}
ArchMiscWindows::setInstanceWin32(GetModuleHandle(nullptr));
#endif