diff options
author | Ruth Sadler <ext-ruth.sadler@nokia.com> | 2011-04-07 13:34:18 (GMT) |
---|---|---|
committer | Ruth Sadler <ext-ruth.sadler@nokia.com> | 2011-04-07 13:34:18 (GMT) |
commit | a41345b6a6f2ed6e8c1a3442aba8259bb87f9fed (patch) | |
tree | e4173b42af259f959b7fa88292e59cffb2f671bf /src/gui/kernel/qapplication_s60.cpp | |
parent | 63064c275481d0e694838e90dead784b53dc10aa (diff) | |
download | Qt-a41345b6a6f2ed6e8c1a3442aba8259bb87f9fed.zip Qt-a41345b6a6f2ed6e8c1a3442aba8259bb87f9fed.tar.gz Qt-a41345b6a6f2ed6e8c1a3442aba8259bb87f9fed.tar.bz2 |
Check the validity of qt_desktopWidget before dereferencing
Task-number: QTMOBILITY-1494
Reviewed-by: Gareth Stockwell
Diffstat (limited to 'src/gui/kernel/qapplication_s60.cpp')
-rw-r--r-- | src/gui/kernel/qapplication_s60.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp index a8680b9..f80b657 100644 --- a/src/gui/kernel/qapplication_s60.cpp +++ b/src/gui/kernel/qapplication_s60.cpp @@ -1448,8 +1448,10 @@ void QSymbianControl::HandleResourceChange(int resourceType) { handleClientAreaChange(); // Send resize event to trigger desktopwidget workAreaResized signal - QResizeEvent e(qt_desktopWidget->size(), qt_desktopWidget->size()); - QApplication::sendEvent(qt_desktopWidget, &e); + if (qt_desktopWidget) { + QResizeEvent e(qt_desktopWidget->size(), qt_desktopWidget->size()); + QApplication::sendEvent(qt_desktopWidget, &e); + } break; } #endif |