(svn r21477) -Fix [FS#4300]: tooltips were removed when their related window got closed

This commit is contained in:
rubidium
2010-12-12 14:14:26 +00:00
parent 5910bde583
commit a029b2b83a
6 changed files with 12 additions and 10 deletions

View File

@@ -2058,7 +2058,7 @@ void UpdateTileSelection()
static inline void ShowMeasurementTooltips(StringID str, uint paramcount, const uint64 params[], TooltipCloseCondition close_cond = TCC_LEFT_CLICK)
{
if (!_settings_client.gui.measure_tooltip) return;
GuiShowTooltips(str, paramcount, params, close_cond);
GuiShowTooltips(FindWindowById(_thd.window_class, _thd.window_number), str, paramcount, params, close_cond);
}
/** highlighting tiles while only going over them with the mouse */