diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2010-06-02 13:18:52 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2010-06-02 13:18:52 (GMT) |
commit | a74b236e732a9326eb27fcbaac5e1ee2fcd07198 (patch) | |
tree | 30e80a12b7f4cd6ec8acff1cd8d355ffad4957e8 /src | |
parent | 932b4b95cf4c7cc250b2c3f23d9b903292f84ab4 (diff) | |
download | Qt-a74b236e732a9326eb27fcbaac5e1ee2fcd07198.zip Qt-a74b236e732a9326eb27fcbaac5e1ee2fcd07198.tar.gz Qt-a74b236e732a9326eb27fcbaac5e1ee2fcd07198.tar.bz2 |
Windows CE: missing null check added in qapplication_win.cpp
Prevents possible crash on WM_SETTINGCHANGE.
Task-number: QTBUG-11023
Reviewed-by: ckamm
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qapplication_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication_win.cpp b/src/gui/kernel/qapplication_win.cpp index 6c30a4a..b3fc2f6 100644 --- a/src/gui/kernel/qapplication_win.cpp +++ b/src/gui/kernel/qapplication_win.cpp @@ -1527,7 +1527,7 @@ LRESULT CALLBACK QtWndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam case WM_SETTINGCHANGE: #ifdef Q_WS_WINCE // CE SIP hide/show - if (wParam == SPI_SETSIPINFO) { + if (qt_desktopWidget && wParam == SPI_SETSIPINFO) { QResizeEvent re(QSize(0, 0), QSize(0, 0)); // Calculated by QDesktopWidget QApplication::sendEvent(qt_desktopWidget, &re); break; |