changeset 5907:7c42887c768a draft

(svn r8533) -Fix: segmentation fault when the toolbar gets removed and you have selected one of the items in a submenu of the toolbar.
author rubidium <rubidium@openttd.org>
date Fri, 02 Feb 2007 14:32:23 +0000
parents f32b2fad0bb8
children ec5a48f5ac64
files src/window.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1915,6 +1915,7 @@
 /* Delete all always on-top windows to get an empty screen */
 void HideVitalWindows(void)
 {
+	DeleteWindowById(WC_TOOLBAR_MENU, 0);
 	DeleteWindowById(WC_MAIN_TOOLBAR, 0);
 	DeleteWindowById(WC_STATUS_BAR, 0);
 }