forked from mirror/OpenTTD
(svn r26392) -Fix[FS#5933] No need to call OnFocus twice (MJP)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user