mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-24 04:11:35 +00:00
Fixed segfault when launcher tries to reload settings on pages not yet there
This commit is contained in:
parent
0cc7c06262
commit
fda25f385a
1 changed files with 3 additions and 0 deletions
|
@ -626,6 +626,9 @@ void Launcher::MainDialog::wizardFinished(int exitCode, QProcess::ExitStatus exi
|
||||||
if (exitCode != 0 || exitStatus == QProcess::CrashExit)
|
if (exitCode != 0 || exitStatus == QProcess::CrashExit)
|
||||||
return qApp->quit();
|
return qApp->quit();
|
||||||
|
|
||||||
|
// HACK: Ensure the pages are created, else segfault
|
||||||
|
setup();
|
||||||
|
|
||||||
if (reloadSettings())
|
if (reloadSettings())
|
||||||
show();
|
show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue