diff options
author | alberth <alberth@openttd.org> | 2014-03-05 21:21:55 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2014-03-05 21:21:55 +0000 |
commit | aee9444c1bdfbc589c99fd2daf3c61868cb7fa4b (patch) | |
tree | b02286eab038f2bd26409302694946aa0e8f4904 | |
parent | 7a126a20eaa524dadc841bf610463e17ef8ce5a7 (diff) | |
download | openttd-aee9444c1bdfbc589c99fd2daf3c61868cb7fa4b.tar.xz |
(svn r26392) -Fix[FS#5933] No need to call OnFocus twice (MJP)
-rw-r--r-- | src/window.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp index df080fa41..8f97693f6 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -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 |