Make sure the parent widget still exists. v5.0.0-beta1
authorJarek Kobus <jaroslaw.kobus@nokia.com>
Mon, 13 Aug 2012 13:49:23 +0000 (15:49 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 22 Aug 2012 00:49:25 +0000 (02:49 +0200)
commitaad795575646b37b5c531cb6314eaa049e90e076
treee3e4b37c57a6963dd3dc912c918f0dd8afdf8ff0
parent83fa4051d623c3c03a0e1b1cadfc63ce735c15e2
Make sure the parent widget still exists.

It may happen that InPlaceWidgetHelper's destructor
is called after parent widget destructor. Now inside
InPlaceWidgetHelper's destructor we check if parent
widget still exists.

Task-number: QTCREATORBUG-7684
Change-Id: I4c9ecbfae7323fd95345ccabc113218a7011ebe8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/designer/src/components/taskmenu/inplace_widget_helper.cpp
src/designer/src/components/taskmenu/inplace_widget_helper.h