1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 12:39:11 +00:00

(svn r26392) -Fix[FS#5933] No need to call OnFocus twice (MJP)

This commit is contained in:
alberth
2014-03-05 21:21:55 +00:00
parent 7a126a20ea
commit aee9444c1b

View File

@@ -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