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 <christian.d.kamm@nokia.com>
This commit is contained in:
Joerg Bornemann 2012-08-06 10:20:48 +02:00 committed by Qt by Nokia
parent ba2c77f21a
commit b170668bb8

View File

@ -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)