summaryrefslogtreecommitdiff
path: root/src/activeqt/container
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2012-01-31 08:14:28 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-02 09:58:20 +0100
commitfb7e4ff9855bab4b06583f65198247ccfcc6599a (patch)
tree141fa8034b1409aab165b1caae40da9aea5bb8e7 /src/activeqt/container
parentb5871311457ca97816c0abbb8b935570bbfb657c (diff)
downloadqt4-tools-fb7e4ff9855bab4b06583f65198247ccfcc6599a.tar.gz
Fix a crash when changeEvent() is called and there is no container
When changeEvent() was called and no container had been set up then it would crash because it uses container without checking if it exists. Task-number: QTBUG-23957 Change-Id: I67393bf5c9bc5b437b92ee2c1b72ffbd5cd12af3 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com> (cherry picked from commit c36006f45fdcbdb97cbc3179c4ecc25203898fc5)
Diffstat (limited to 'src/activeqt/container')
-rw-r--r--src/activeqt/container/qaxwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activeqt/container/qaxwidget.cpp b/src/activeqt/container/qaxwidget.cpp
index e07099a94d..92a1e11729 100644
--- a/src/activeqt/container/qaxwidget.cpp
+++ b/src/activeqt/container/qaxwidget.cpp
@@ -2148,7 +2148,7 @@ QSize QAxWidget::minimumSizeHint() const
*/
void QAxWidget::changeEvent(QEvent *e)
{
- if (isNull())
+ if (isNull() || !container)
return;
switch (e->type()) {