Merge pull request #9899 from igorkorsukov/bugs/9890_crash_on_open_editstyle
Fixed crash on open edit style dialog
This commit is contained in:
commit
80c24598eb
1 changed files with 1 additions and 1 deletions
|
@ -512,7 +512,7 @@ void UiTheme::drawPrimitive(QStyle::PrimitiveElement element, const QStyleOption
|
|||
} break;
|
||||
|
||||
case QStyle::PE_FrameFocusRect: {
|
||||
bool isTreeWidget = option->styleObject->inherits("QTreeWidget");
|
||||
bool isTreeWidget = option->styleObject && option->styleObject->inherits("QTreeWidget");
|
||||
if (isTreeWidget) {
|
||||
drawRoundedRect(painter, option->rect, 1, NO_FILL, QPen(fontPrimaryColor(), navCtrlBorderWidth()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue