summaryrefslogtreecommitdiff
path: root/gtk2_ardour/mixer_ui.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2012-06-07 21:51:25 +0000
committerCarl Hetherington <carl@carlh.net>2012-06-07 21:51:25 +0000
commitf13119d2e111e7f295330560478ed6090f27a1f6 (patch)
tree5633bdce7394d6a3bb82600fe6103ffd881790a3 /gtk2_ardour/mixer_ui.cc
parent688d8cca990c81d038f036f4f78f5667849bcf20 (diff)
Slightly grubby hack to fix up the state of the Window->Mixer menu item when the mixer is opened on starting Ardour (#4808).
git-svn-id: svn://localhost/ardour2/branches/3.0@12599 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_ui.cc')
-rw-r--r--gtk2_ardour/mixer_ui.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc
index 69b048acb9..60b3f7b0d8 100644
--- a/gtk2_ardour/mixer_ui.cc
+++ b/gtk2_ardour/mixer_ui.cc
@@ -593,6 +593,12 @@ Mixer_UI::set_session (Session* sess)
if (_visible) {
show_window();
+
+ /* Bit of a hack; if we're here, we're opening the mixer because of our
+ instant XML state having a show-mixer property. Fix up the corresponding
+ action state.
+ */
+ ActionManager::check_toggleaction ("<Actions>/Common/toggle-mixer");
}
start_updating ();