mirror of https://github.com/stella-emu/stella.git
Fix crash in certain cases (most obvious when selecting cart tabs in debugger).
This commit is contained in:
parent
ae439ba318
commit
c86aa6957b
|
@ -422,11 +422,12 @@ void Dialog::drawDialog()
|
||||||
// Draw outlines for focused widgets
|
// Draw outlines for focused widgets
|
||||||
// Don't change focus, since this will trigger lost and received
|
// Don't change focus, since this will trigger lost and received
|
||||||
// focus events
|
// focus events
|
||||||
if (_focusedWidget)
|
if(_focusedWidget)
|
||||||
{
|
{
|
||||||
_focusedWidget = Widget::setFocusForChain(this, getFocusList(),
|
_focusedWidget = Widget::setFocusForChain(this, getFocusList(),
|
||||||
_focusedWidget, 0, false);
|
_focusedWidget, 0, false);
|
||||||
_focusedWidget->draw(); // make sure the highlight color is drawn initially
|
if(_focusedWidget)
|
||||||
|
_focusedWidget->draw(); // make sure the highlight color is drawn initially
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue