1
0
Fork 0

Apperently maybeRestoreAircraftSelection() needs to be a slot

This commit is contained in:
Erik Hofman 2016-01-11 09:46:16 +01:00
parent 409ffc971d
commit f19c8ac05d
2 changed files with 4 additions and 2 deletions

View 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()

View 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();