Bug 851438 - crash [@ MozQWidget::showEvent] r=romaxa. DONTBUILD
authorTatiana Meshkova <tanya.meshkova@gmail.com>
Fri, 15 Mar 2013 00:56:04 -0700
changeset 136459 f1b69057a270568fd91218d8faba77406f9bf88a
parent 136458 0373ca9b42ef2337db6a8e56522be4bcbf719491
child 136460 e218608de7de36934bbdfc4ac5895a1b97c1b8c4
push id2452
push userlsblakk@mozilla.com
push dateMon, 13 May 2013 16:59:38 +0000
treeherdermozilla-beta@d4b152d29d8d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersromaxa
bugs851438
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 851438 - crash [@ MozQWidget::showEvent] r=romaxa. DONTBUILD
widget/qt/mozqwidget.cpp
--- a/widget/qt/mozqwidget.cpp
+++ b/widget/qt/mozqwidget.cpp
@@ -409,17 +409,19 @@ void MozQWidget::hideEvent(QHideEvent* a
     if (mReceiver) {
         mReceiver->hideEvent(aEvent);
     }
     QGraphicsWidget::hideEvent(aEvent);
 }
 
 void MozQWidget::showEvent(QShowEvent* aEvent)
 {
-    mReceiver->showEvent(aEvent);
+    if (mReceiver) {
+        mReceiver->showEvent(aEvent);
+    }
     QGraphicsWidget::showEvent(aEvent);
 }
 
 void MozQWidget::SetCursor(nsCursor aCursor)
 {
     Qt::CursorShape cursor = Qt::ArrowCursor;
     switch(aCursor) {
     case eCursor_standard: