From d56fbfd415eebeef2ad421c60624e1231c3586e1 Mon Sep 17 00:00:00 2001 From: "Rebecca N. Palmer" Date: Mon, 30 Nov 2015 23:10:32 +0000 Subject: [PATCH] Revert "Initialise Qt earlier, and whenever available" Temporary workaround for http://sourceforge.net/p/flightgear/codetickets/1819/ This reverts commit 3e67417bf009493f8f2ae1e362b6014028fc3cbf. --- src/Main/bootstrap.cxx | 6 ------ src/Main/main.cxx | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Main/bootstrap.cxx b/src/Main/bootstrap.cxx index 5bad23257..f15c9098a 100644 --- a/src/Main/bootstrap.cxx +++ b/src/Main/bootstrap.cxx @@ -67,9 +67,6 @@ #include "fg_os.hxx" -#ifdef HAVE_QT - #include -#endif #if defined(HAVE_CRASHRPT) #include @@ -230,9 +227,6 @@ int main ( int argc, char **argv ) // when fg_terminate runs, which causes crashes. osg::Texture::getTextureObjectManager(0); osg::GLBufferObjectManager::getGLBufferObjectManager(0); -#endif -#ifdef HAVE_QT - flightgear::initApp(argc, argv); #endif std::set_terminate(fg_terminate); atexit(fgExitCleanup); diff --git a/src/Main/main.cxx b/src/Main/main.cxx index e67cb1804..2434d2058 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -449,6 +449,7 @@ int fgMainInit( int argc, char **argv ) showLauncher |= (::getenv("FG_LAUNCHER") != 0); if (showLauncher) { + flightgear::initApp(argc, argv); if (!flightgear::runLauncherDialog()) { return EXIT_SUCCESS; } -- 2.39.5