fix(core): Destroy temporary QCoreApplication before creating the real one
This commit is contained in:
parent
8a77e5f130
commit
29352d97b3
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue