forked from qt-creator/qt-creator
QmlDesigner: Fix the Crash on hovering bake lights icon
Task-number: QDS-10043 Change-Id: Ic049f55c6fc7aa86e1b3c1ec036df5cd5f25673e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -214,7 +214,7 @@ int ManhattanStyle::pixelMetric(PixelMetric metric, const QStyleOption *option,
|
||||
switch (metric) {
|
||||
#ifdef Q_OS_MACOS
|
||||
case PM_MenuButtonIndicator:
|
||||
if (widget && option->type == QStyleOption::SO_ToolButton)
|
||||
if (widget && option && option->type == QStyleOption::SO_ToolButton)
|
||||
return 12;
|
||||
break;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user