Tidy up focus management for vehicle dropdowns
This commit is contained in:
@@ -429,6 +429,8 @@ void SetFocusedWindow(Window *w)
|
||||
{
|
||||
if (_focused_window == w) return;
|
||||
|
||||
if (w != nullptr && w->window_class == WC_INVALID) return;
|
||||
|
||||
/* Invalidate focused widget */
|
||||
if (_focused_window != nullptr) {
|
||||
if (_focused_window->nested_focus != nullptr) _focused_window->nested_focus->SetDirty(_focused_window);
|
||||
|
Reference in New Issue
Block a user