mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r26392) -Fix[FS#5933] No need to call OnFocus twice (MJP)
This commit is contained in:
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
|
||||
focused_widget_changed = true;
|
||||
SetFocusedWindow(w);
|
||||
w->OnFocus();
|
||||
}
|
||||
|
||||
if (nw == NULL) return; // exit if clicked outside of widgets
|
||||
|
|
Loading…
Reference in New Issue