From: Erik Hofman Date: Mon, 11 Jan 2016 08:46:16 +0000 (+0100) Subject: Apperently maybeRestoreAircraftSelection() needs to be a slot X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f19c8ac05d73b2b3e4415e761e60c54b8c1c496b;p=flightgear.git Apperently maybeRestoreAircraftSelection() needs to be a slot --- diff --git a/src/GUI/QtLauncher.cxx b/src/GUI/QtLauncher.cxx index cd8a14488..9acf91b37 100644 --- a/src/GUI/QtLauncher.cxx +++ b/src/GUI/QtLauncher.cxx @@ -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() diff --git a/src/GUI/QtLauncher_private.hxx b/src/GUI/QtLauncher_private.hxx index 8a2a8b7aa..104c8ddb5 100644 --- a/src/GUI/QtLauncher_private.hxx +++ b/src/GUI/QtLauncher_private.hxx @@ -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();