Fix crash in certain cases (most obvious when selecting cart tabs in debugger).

This commit is contained in:
Stephen Anthony 2019-05-23 18:24:00 -02:30
parent 59ebcd7a38
commit e37821cd8a
1 changed files with 3 additions and 2 deletions

View File

@ -426,6 +426,7 @@ void Dialog::drawDialog()
{ {
_focusedWidget = Widget::setFocusForChain(this, getFocusList(), _focusedWidget = Widget::setFocusForChain(this, getFocusList(),
_focusedWidget, 0, false); _focusedWidget, 0, false);
if(_focusedWidget)
_focusedWidget->draw(); // make sure the highlight color is drawn initially _focusedWidget->draw(); // make sure the highlight color is drawn initially
} }
} }