diff options
author | rubidium <rubidium@openttd.org> | 2010-12-12 14:14:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-12 14:14:26 +0000 |
commit | a029b2b83aa344fdd8ba1f7bc0915205c52daca0 (patch) | |
tree | 95fc2013ee1d0e8c8ecd5b02ec8b807047922267 /src/window.cpp | |
parent | 5910bde58367764387e00c76e14d7465be942e7f (diff) | |
download | openttd-a029b2b83aa344fdd8ba1f7bc0915205c52daca0.tar.xz |
(svn r21477) -Fix [FS#4300]: tooltips were removed when their related window got closed
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp index 5c6ef3fa7..df7771633 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -406,7 +406,7 @@ static void DispatchRightClickEvent(Window *w, int x, int y) if (w->OnRightClick(pt, wid->index)) return; } - if (_settings_client.gui.hover_delay == 0 && wid->tool_tip != 0) GuiShowTooltips(wid->tool_tip, 0, NULL, TCC_RIGHT_CLICK); + if (_settings_client.gui.hover_delay == 0 && wid->tool_tip != 0) GuiShowTooltips(w, wid->tool_tip, 0, NULL, TCC_RIGHT_CLICK); } /** @@ -424,7 +424,7 @@ static void DispatchHoverEvent(Window *w, int x, int y) /* Show the tooltip if there is any */ if (wid->tool_tip != 0) { - GuiShowTooltips(wid->tool_tip); + GuiShowTooltips(w, wid->tool_tip); return; } |