diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index e499da9645..087c6503d0 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -448,8 +448,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) : _bookmarks = new Bookmarks(); // Before setting up the menu - _runningScriptsWidget = new RunningScriptsWidget(_window); - // start the nodeThread so its event loop is running QThread* nodeThread = new QThread(this); nodeThread->setObjectName("NodeList Thread"); @@ -980,6 +978,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); }