From f19c8ac05d73b2b3e4415e761e60c54b8c1c496b Mon Sep 17 00:00:00 2001 From: Erik Hofman Date: Mon, 11 Jan 2016 09:46:16 +0100 Subject: [PATCH] Apperently maybeRestoreAircraftSelection() needs to be a slot --- src/GUI/QtLauncher.cxx | 2 +- src/GUI/QtLauncher_private.hxx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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(); -- 2.39.5