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)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
// HACK to make sure settings gets the correct qApp path
|
{
|
||||||
QCoreApplication m(argc, argv);
|
// HACK to make sure settings gets the correct qApp path
|
||||||
m.deleteLater();
|
QCoreApplication m(argc, argv);
|
||||||
|
}
|
||||||
|
|
||||||
ArchMiscWindows::setInstanceWin32(GetModuleHandle(nullptr));
|
ArchMiscWindows::setInstanceWin32(GetModuleHandle(nullptr));
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue