From 0d214078348e01d12131c4000533bf86614ddf2b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 7 Oct 2008 11:08:31 +0000 Subject: fix track/strip sync-reorder issues; don't show mixer strip on selection change if it wasn't already visible git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3875 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/editor_mixer.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour/editor_mixer.cc') diff --git a/gtk2_ardour/editor_mixer.cc b/gtk2_ardour/editor_mixer.cc index 81b79965b9..b81ed79b07 100644 --- a/gtk2_ardour/editor_mixer.cc +++ b/gtk2_ardour/editor_mixer.cc @@ -137,6 +137,7 @@ void Editor::set_selected_mixer_strip (TimeAxisView& view) { AudioTimeAxisView* at; + bool show = false; if (!session || (at = dynamic_cast(&view)) == 0) { return; @@ -150,6 +151,10 @@ Editor::set_selected_mixer_strip (TimeAxisView& view) return; } + if (current_mixer_strip->get_parent()) { + show = true; + } + } else { current_mixer_strip = new MixerStrip (*ARDOUR_UI::instance()->the_mixer(), @@ -159,7 +164,10 @@ Editor::set_selected_mixer_strip (TimeAxisView& view) } current_mixer_strip->set_route (at->route()); - show_editor_mixer (true); + + if (show) { + show_editor_mixer (true); + } } double current = 0.0; -- cgit v1.2.3