diff options
author | rubidium <rubidium@openttd.org> | 2009-11-04 15:49:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-04 15:49:27 +0000 |
commit | fd29b7b5260d76bbc1e4dad1aae826bd595dad74 (patch) | |
tree | 200eff444c5fd5a06be199cb9914b3fa6a7564f8 /src | |
parent | e6a164de09e4ee97488eabedd5d946a9f11ed5a9 (diff) | |
download | openttd-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')
-rw-r--r-- | src/toolbar_gui.cpp | 2 |
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); } |