Intercept the close event and quit the app instead of continuing to
run the main FlightGear application.
https://sourceforge.net/p/flightgear/codetickets/1845/
}
}
+void QtLauncher::closeEvent(QCloseEvent *event)
+{
+ qApp->exit(-1);
+}
+
void QtLauncher::onRun()
{
flightgear::Options* opt = flightgear::Options::sharedInstance();
void setSceneryPaths();
+protected:
+ virtual void closeEvent(QCloseEvent *event);
+
+
private slots:
// run is used when the launcher is invoked before the main app is
// started