mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 18:13:05 +02:00
Quit VRMode before aboutToQuit runs
This commit is contained in:
parent
efbd74f539
commit
a3f8076641
3 changed files with 5 additions and 2 deletions
|
@ -564,8 +564,9 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) :
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::aboutToQuit() {
|
void Application::aboutToQuit() {
|
||||||
_aboutToQuit = true;
|
emit beforeAboutToQuit();
|
||||||
|
|
||||||
|
_aboutToQuit = true;
|
||||||
cleanupBeforeQuit();
|
cleanupBeforeQuit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -337,6 +337,8 @@ signals:
|
||||||
|
|
||||||
void faceURLChanged(const QString& newValue);
|
void faceURLChanged(const QString& newValue);
|
||||||
void skeletonURLChanged(const QString& newValue);
|
void skeletonURLChanged(const QString& newValue);
|
||||||
|
|
||||||
|
void beforeAboutToQuit();
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void domainChanged(const QString& domainHostname);
|
void domainChanged(const QString& domainHostname);
|
||||||
|
|
|
@ -87,7 +87,7 @@ HMDToolsDialog::HMDToolsDialog(QWidget* parent) :
|
||||||
}
|
}
|
||||||
|
|
||||||
// when the application is about to quit, leave HDM mode
|
// when the application is about to quit, leave HDM mode
|
||||||
connect(Application::getInstance(), SIGNAL(aboutToQuit()), this, SLOT(aboutToQuit()));
|
connect(Application::getInstance(), SIGNAL(beforeAboutToQuit()), this, SLOT(aboutToQuit()));
|
||||||
|
|
||||||
// keep track of changes to the number of screens
|
// keep track of changes to the number of screens
|
||||||
connect(QApplication::desktop(), &QDesktopWidget::screenCountChanged, this, &HMDToolsDialog::screenCountChanged);
|
connect(QApplication::desktop(), &QDesktopWidget::screenCountChanged, this, &HMDToolsDialog::screenCountChanged);
|
||||||
|
|
Loading…
Reference in a new issue