From: Joerg Bornemann Date: Mon, 6 Aug 2012 08:20:48 +0000 (+0200) Subject: fix maximize -> fullscreen -> maximize on Windows X-Git-Tag: v5.0.0-beta1~417 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b170668bb88c076ddb5839c32f7bb947a1fbec96;p=profile%2Fivi%2Fqtbase.git fix maximize -> fullscreen -> maximize on Windows Using a reference changes the value of oldState within this function, which is undesired. Change-Id: I9fb66e488015d6b3e586ffa2f0b05a40c095e16b Reviewed-by: Christian Kamm --- diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp index 1c76ff4..6e0d9b5 100644 --- a/src/plugins/platforms/windows/qwindowswindow.cpp +++ b/src/plugins/platforms/windows/qwindowswindow.cpp @@ -1203,7 +1203,7 @@ bool QWindowsWindow::isFullScreen_sys() const void QWindowsWindow::setWindowState_sys(Qt::WindowState newState) { - const Qt::WindowState &oldState = m_windowState; + const Qt::WindowState oldState = m_windowState; if (oldState == newState) return; if (QWindowsContext::verboseWindows)