]> git.mxchange.org Git - flightgear.git/commitdiff
Apperently maybeRestoreAircraftSelection() needs to be a slot
authorErik Hofman <erik@ehofman.com>
Mon, 11 Jan 2016 08:46:16 +0000 (09:46 +0100)
committerErik Hofman <erik@ehofman.com>
Mon, 11 Jan 2016 08:46:16 +0000 (09:46 +0100)
src/GUI/QtLauncher.cxx
src/GUI/QtLauncher_private.hxx

index cd8a14488e9904ea74819151fbe63980c3995168..9acf91b37bfbaa88744381d50da5281ef5a5e30a 100644 (file)
@@ -664,7 +664,7 @@ void QtLauncher::restoreSettings()
 
 void QtLauncher::delayedAircraftModelReset()
 {
-    QTimer::singleShot(1, this, &QtLauncher::maybeRestoreAircraftSelection);
+    QTimer::singleShot(1, this, SLOT(QtLauncher::maybeRestoreAircraftSelection()));
 }
 
 void QtLauncher::maybeRestoreAircraftSelection()
index 8a2a8b7aad45986dccab53845337c8cd9db84873..104c8ddb5c2c801b7d9e2a93203572b875102310 100644 (file)
@@ -88,6 +88,9 @@ private slots:
     void onAircraftInstallFailed(QModelIndex index, QString errorMessage);
 
     void onShowInstalledAircraftToggled(bool b);
+
+    void maybeRestoreAircraftSelection();
+
 private:
 
     /**
@@ -107,7 +110,6 @@ private:
 
     simgear::pkg::PackageRef packageForAircraftURI(QUrl uri) const;
 
-    void maybeRestoreAircraftSelection();
     // need to wait after a model reset before restoring selection and
     // scrolling, to give the view time it seems.
     void delayedAircraftModelReset();