summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-07 15:53:58 +0000
committersmatz <smatz@openttd.org>2008-05-07 15:53:58 +0000
commit0c4715d8256a875249fab2389dd19cd437e4e97b (patch)
treef35bd6dd41b3f38939ae87e83a7b3deface8ada5
parentc2c9121307e3d26b84b930ffdfb1438b49a0619a (diff)
downloadopenttd-0c4715d8256a875249fab2389dd19cd437e4e97b.tar.xz
(svn r12992) -Fix (r12976): main toolbar wasn't marked dirty when a child combobox was destroyed
-rw-r--r--src/toolbar_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/toolbar_gui.cpp b/src/toolbar_gui.cpp
index 8d0c3d2d6..422687d2e 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -1326,7 +1326,7 @@ static void PlayerMenuWndProc(Window *w, WindowEvent *e)
case WE_DESTROY: {
Window *v = FindWindowById(WC_MAIN_TOOLBAR, 0);
v->RaiseWidget(WP(w, menu_d).main_button);
- w->SetDirty();
+ v->SetDirty();
return;
}