Commit 9439013d authored by David Redondo's avatar David Redondo 🏎

Remove the shadow in widgetDestroyed()

It can happen that the widget is destroyed without being hidden before. QObject::destroyed
is send before the event.  So just handle it there.
parent 0263af12
......@@ -165,14 +165,6 @@ namespace Breeze
updateShadowZOrder( object );
break;
case QEvent::Destroy:
if( isRegistered( object ) )
{
_registeredWidgets.remove( object );
removeShadow( object );
}
break;
case QEvent::Hide:
hideShadows( object );
break;
......@@ -245,6 +237,9 @@ namespace Breeze
//____________________________________________________________________________________
void MdiWindowShadowFactory::widgetDestroyed( QObject* object )
{ _registeredWidgets.remove( object ); }
{
_registeredWidgets.remove( object );
removeShadow( object );
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment