Commit 8bd426db authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Don't call BlurHelper::clear() for unregistered widgets

BlurHelper::clear() will call QWidget::winId(), which may create a
toplevel window.

BUG: 435129
parent 458d196d
......@@ -91,12 +91,12 @@ namespace Oxygen
//___________________________________________________________
void BlurHelper::unregisterWidget( QWidget* widget )
{
// remove from widgets
if( !_widgets.remove( widget ) ) return;
// remove event filter
widget->removeEventFilter( this );
// remove from widgets
_widgets.remove( widget );
if( isTransparent( widget ) ) clear( widget );
}
......
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