summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2014-03-05 21:21:55 +0000
committeralberth <alberth@openttd.org>2014-03-05 21:21:55 +0000
commitaee9444c1bdfbc589c99fd2daf3c61868cb7fa4b (patch)
treeb02286eab038f2bd26409302694946aa0e8f4904 /src/window.cpp
parent7a126a20eaa524dadc841bf610463e17ef8ce5a7 (diff)
downloadopenttd-aee9444c1bdfbc589c99fd2daf3c61868cb7fa4b.tar.xz
(svn r26392) -Fix[FS#5933] No need to call OnFocus twice (MJP)
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp1
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