summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mixer.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-10-07 11:08:31 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-10-07 11:08:31 +0000
commit0d214078348e01d12131c4000533bf86614ddf2b (patch)
treeae63d05cd7e9747dc7830b56ac5c717878d21110 /gtk2_ardour/editor_mixer.cc
parentb96c0cba68835a4bda17d4e63494ddab97713322 (diff)
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
Diffstat (limited to 'gtk2_ardour/editor_mixer.cc')
-rw-r--r--gtk2_ardour/editor_mixer.cc10
1 files changed, 9 insertions, 1 deletions
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<AudioTimeAxisView*>(&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;