summaryrefslogtreecommitdiff
path: root/src/toolbar_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-04 15:49:27 +0000
committerrubidium <rubidium@openttd.org>2009-11-04 15:49:27 +0000
commitfd29b7b5260d76bbc1e4dad1aae826bd595dad74 (patch)
tree200eff444c5fd5a06be199cb9914b3fa6a7564f8 /src/toolbar_gui.cpp
parente6a164de09e4ee97488eabedd5d946a9f11ed5a9 (diff)
downloadopenttd-fd29b7b5260d76bbc1e4dad1aae826bd595dad74.tar.xz
(svn r17969) -Codechange: use the toolbar switch button lowered state as a way to tell which of the configurations it's showing
Diffstat (limited to 'src/toolbar_gui.cpp')
-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 01789aedd..6c09c3a71 100644
--- a/src/toolbar_gui.cpp
+++ b/src/toolbar_gui.cpp
@@ -779,7 +779,7 @@ static void ToolbarSwitchClick(Window *w)
}
SplitToolbar(w);
- w->HandleButtonClick(TBN_SWITCHBAR);
+ w->SetWidgetLoweredState(TBN_SWITCHBAR, _toolbar_mode == TB_LOWER);
w->SetDirty();
SndPlayFx(SND_15_BEEP);
}