mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 18:16:08 +02:00
temporary fix to crash on startup
This commit is contained in:
parent
511ad76092
commit
5ec5ff9ad0
1 changed files with 5 additions and 2 deletions
|
@ -615,8 +615,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) :
|
|||
OffscreenUi::warning(nullptr, "Error Loading Script", filename + " failed to load.");
|
||||
}, Qt::QueuedConnection);
|
||||
|
||||
_runningScriptsWidget = new RunningScriptsWidget(_window);
|
||||
|
||||
|
||||
#ifdef _WIN32
|
||||
WSADATA WsaData;
|
||||
|
@ -981,6 +979,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) :
|
|||
|
||||
connect(this, &Application::applicationStateChanged, this, &Application::activeChanged);
|
||||
|
||||
// FIXME -- NOTE: This will call ProcessEvents() which can cause authentication signals to fire, which
|
||||
// if not logged in can cause the login dialog to appear. As currently implemented, the login requires
|
||||
// the offscreen UI to render, so this needs to be well after OffscreenUi is available
|
||||
_runningScriptsWidget = new RunningScriptsWidget(_window);
|
||||
|
||||
qCDebug(interfaceapp, "Startup time: %4.2f seconds.", (double)startupTimer.elapsed() / 1000.0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue