diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2010-06-02 15:18:52 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2010-06-02 15:18:52 +0200 |
commit | a74b236e732a9326eb27fcbaac5e1ee2fcd07198 (patch) | |
tree | 30e80a12b7f4cd6ec8acff1cd8d355ffad4957e8 | |
parent | 932b4b95cf4c7cc250b2c3f23d9b903292f84ab4 (diff) |
Windows CE: missing null check added in qapplication_win.cpp
Prevents possible crash on WM_SETTINGCHANGE.
Task-number: QTBUG-11023
Reviewed-by: ckamm
-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 6c30a4a4ef..b3fc2f6a4b 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; |