Now protection is provided. If QtxWorkstackChild receives event about deletion of its base widget it removes it clears its layout. Also all processEvents() emthods call are commented in DiagramGUI_Module.
{
if ( obj != widget() )
return;
-
+
+ QLayout* lay = layout();
+ if ( lay )
+ {
+ QLayoutItem* item = lay->takeAt( 0 );
+ if ( item )
+ lay->removeItem( item );
+ }
+
myWidget = 0;
deleteLater();
}
{
if ( e->removed() && e->child() == widget() )
{
+ QLayout* lay = layout();
+ if ( lay )
+ {
+ QLayoutItem* item = lay->takeAt( 0 );
+ if ( item )
+ lay->removeItem( item );
+ }
+
myWidget = 0;
deleteLater();
}