From: Christian Pulvermacher Date: Sat, 4 Feb 2012 13:48:25 +0000 (+0100) Subject: correctly leave fullscreen mode when connection is lost X-Git-Tag: 0.8~7 X-Git-Url: http://git.maemo.org/git/?p=presencevnc;a=commitdiff_plain;h=2901c98efeeb659a35d5df659d1d1208ae8ba69d correctly leave fullscreen mode when connection is lost --- diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index cd0b58f..4736c5f 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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