At least on Linux, fixes an annoying issue where closing the application

window causes it to disappear and reappear briefly before exiting.
This commit is contained in:
Andrzej Kapolka 2014-12-02 13:19:39 -08:00
parent 22bee75f7f
commit 4d233c09a3

View file

@ -1574,7 +1574,9 @@ void Application::setFullscreen(bool fullscreen) {
}
_window->setWindowState(fullscreen ? (_window->windowState() | Qt::WindowFullScreen) :
(_window->windowState() & ~Qt::WindowFullScreen));
_window->show();
if (!_aboutToQuit) {
_window->show();
}
}
void Application::setEnable3DTVMode(bool enable3DTVMode) {