changeset 9132:8fb0a5ce8a95 draft

(svn r12992) -Fix (r12976): main toolbar wasn't marked dirty when a child combobox was destroyed
author smatz <smatz@openttd.org>
date Wed, 07 May 2008 15:53:58 +0000
parents 8ea2cd8158a0
children e3385963638f
files src/toolbar_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -1326,7 +1326,7 @@
 		case WE_DESTROY: {
 			Window *v = FindWindowById(WC_MAIN_TOOLBAR, 0);
 			v->RaiseWidget(WP(w, menu_d).main_button);
-			w->SetDirty();
+			v->SetDirty();
 			return;
 		}