summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_s60.cpp
diff options
context:
space:
mode:
authorRuth Sadler <ext-ruth.sadler@nokia.com>2011-04-07 13:34:18 (GMT)
committerRuth Sadler <ext-ruth.sadler@nokia.com>2011-04-07 13:34:18 (GMT)
commita41345b6a6f2ed6e8c1a3442aba8259bb87f9fed (patch)
treee4173b42af259f959b7fa88292e59cffb2f671bf /src/gui/kernel/qapplication_s60.cpp
parent63064c275481d0e694838e90dead784b53dc10aa (diff)
downloadQt-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.cpp6
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