(to allow it to be used for error boxes)
#include "fg_os.hxx"
+#ifdef HAVE_QT
+ #include <GUI/QtLauncher.hxx>
+#endif
#if defined(HAVE_CRASHRPT)
#include <CrashRpt.h>
// 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);
showLauncher |= (::getenv("FG_LAUNCHER") != 0);
if (showLauncher) {
- flightgear::initApp(argc, argv);
if (!flightgear::runLauncherDialog()) {
return EXIT_SUCCESS;
}