correctly leave fullscreen mode when connection is lost
authorChristian Pulvermacher <pulvermacher@gmx.de>
Sat, 4 Feb 2012 13:48:25 +0000 (14:48 +0100)
committerChristian Pulvermacher <pulvermacher@gmx.de>
Sat, 4 Feb 2012 13:48:25 +0000 (14:48 +0100)
src/mainwindow.cpp

index cd0b58f..4736c5f 100644 (file)
@@ -271,7 +271,7 @@ void MainWindow::statusChanged(RemoteView::RemoteStatus status)
 
         //exit fullscreen mode
         if(windowState() & Qt::WindowFullScreen)
-            setWindowState(windowState() ^ Qt::WindowFullScreen);
+            toggleFullscreen();
         break;
     case RemoteView::Disconnected:
 #ifdef Q_WS_MAEMO_5