From f2300164d7a89c5e433d3293dfed4c1ab77f0553 Mon Sep 17 00:00:00 2001 From: nick_m Date: Tue, 29 Oct 2013 02:04:26 +1100 Subject: [PATCH] Fix thinko in setting order hint. --- gtk2_ardour/ardour_ui.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 127927e80a..010f7d35e5 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -3250,6 +3250,11 @@ ARDOUR_UI::setup_order_hint () order_hint = (*s)->route()->order_key(); } } + + if (!mixer->selection().routes.empty()) { + order_hint++; + } + } else { for (TrackSelection::iterator s = editor->get_selection().tracks.begin(); s != editor->get_selection().tracks.end(); ++s) { RouteTimeAxisView* tav = dynamic_cast (*s); @@ -3257,10 +3262,10 @@ ARDOUR_UI::setup_order_hint () order_hint = tav->route()->order_key(); } } - } - if (!mixer->selection().routes.empty() || !editor->get_selection().tracks.empty()) { - order_hint++; + if (!editor->get_selection().tracks.empty()) { + order_hint++; + } } _session->set_order_hint (order_hint);