Commit 6d886e9f authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Check for option->styleObject before accessing it

BUG: 395028
FIXED-IN: 5.13.0

Differential Revision:
parent 171efb4a
......@@ -5038,7 +5038,9 @@ namespace Breeze
//try to understand if anywhere the widget is under mouse, not just the handle, use _animations in case of QWidget, option->styleObject in case of QML
#if QT_VERSION >= 0x050000
const bool widgetMouseOver( widget ? _animations->scrollBarEngine().isHovered( widget, QStyle::SC_ScrollBarGroove ) : option->styleObject->property("hover").toBool());
bool widgetMouseOver( ( option->state & State_MouseOver ) );
if( widget ) widgetMouseOver = _animations->scrollBarEngine().isHovered( widget, QStyle::SC_ScrollBarGroove );
else if( option->styleObject ) widgetMouseOver = option->styleObject->property("hover").toBool();
const bool widgetMouseOver( _animations->scrollBarEngine().isHovered( widget, QStyle::SC_ScrollBarGroove ) );
Supports Markdown
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