Manage properly fullscreen in OutputGLWindow: it was possible to have the window without the fullscreen, which caused issues in some circumstances.

This commit is contained in:
Tats
2016-03-26 18:17:57 -04:00
parent 4c5e104b46
commit eca2e881d9
3 changed files with 15 additions and 20 deletions
+1 -1
View File
@@ -1630,7 +1630,7 @@ void MainWindow::createActions()
// Manage fullscreen/modal show of GL output window.
connect(outputFullScreenAction, SIGNAL(toggled(bool)), outputWindow, SLOT(setFullScreen(bool)));
// When closing the GL output window or hit ESC key, uncheck the action in menu.
connect(outputWindow, SIGNAL(closed()), outputFullScreenAction, SLOT(toggle()));
// connect(outputWindow, SIGNAL(closed()), outputFullScreenAction, SLOT(toggle()));
connect(QApplication::desktop(), SIGNAL(screenCountChanged(int)), this, SLOT(updateOutputAction(int)));
// Create hiden action for closing output window
QAction *closeOutput = new QAction(tr("Close output"), this);