mirror of https://github.com/OpenTTD/OpenTTD
(svn r26392) -Fix[FS#5933] No need to call OnFocus twice (MJP)
parent
7a126a20ea
commit
aee9444c1b
|
@ -619,7 +619,6 @@ static void DispatchLeftClickEvent(Window *w, int x, int y, int click_count)
|
||||||
widget_type != WWT_CLOSEBOX) { // Don't change focused window if 'X' (close button) was clicked
|
widget_type != WWT_CLOSEBOX) { // Don't change focused window if 'X' (close button) was clicked
|
||||||
focused_widget_changed = true;
|
focused_widget_changed = true;
|
||||||
SetFocusedWindow(w);
|
SetFocusedWindow(w);
|
||||||
w->OnFocus();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nw == NULL) return; // exit if clicked outside of widgets
|
if (nw == NULL) return; // exit if clicked outside of widgets
|
||||||
|
|
Loading…
Reference in New Issue