Inverted order in which fullscreen and escape key are called (escape only works in fullscreen).

This commit is contained in:
baydam
2014-10-22 11:17:01 +00:00
parent 01ad2f9f41
commit c1c8287aed
+2 -2
View File
@@ -65,9 +65,9 @@ void OutputGLWindow::closeEvent(QCloseEvent *event)
void OutputGLWindow::keyPressEvent(QKeyEvent *event)
{
// Escape from full screen mode.
if (event->key() == Qt::Key_Escape)
if (isFullScreen())
{
if (isFullScreen())
if (event->key() == Qt::Key_Escape)
{
setFullScreen(false);
emit fullScreenToggled(false);