summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-09-02 12:03:50 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-09-02 12:55:39 (GMT)
commit9d88ff485e93e9701719263ce0a46cb86b0398ca (patch)
tree712e6b8ec3a9d15c3bc115d2ba1ce560e8c296e5 /src/gui
parentcf0917cfc3b040e9650953560038f92cac42b6e3 (diff)
downloadQt-9d88ff485e93e9701719263ce0a46cb86b0398ca.zip
Qt-9d88ff485e93e9701719263ce0a46cb86b0398ca.tar.gz
Qt-9d88ff485e93e9701719263ce0a46cb86b0398ca.tar.bz2
Prevent null pointer dereference
Task-number: QTBUG-13204 Reviewed-by: axis
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qapplication_s60.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp
index 4ed4ba3..21f930e 100644
--- a/src/gui/kernel/qapplication_s60.cpp
+++ b/src/gui/kernel/qapplication_s60.cpp
@@ -129,7 +129,7 @@ void QS60Data::setStatusPaneAndButtonGroupVisibility(bool statusPaneVisible, boo
statusPaneVisibilityChanged = (s->IsVisible() != statusPaneVisible);
s->MakeVisible(statusPaneVisible);
}
- if (buttonGroupVisibilityChanged && !statusPaneVisibilityChanged)
+ if (buttonGroupVisibilityChanged && !statusPaneVisibilityChanged && QApplication::activeWindow())
// Ensure that control rectangle is updated
static_cast<QSymbianControl *>(QApplication::activeWindow()->winId())->handleClientAreaChange();
}