summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2016-10-30 06:48:05 -0700
committerLen Ovens <len@ovenwerks.net>2016-10-30 06:48:05 -0700
commit997b48baf72c87281ae4dc535c9b3994810d8e72 (patch)
tree6cb810c78a6a5353ed93613817229652b63b0b86 /gtk2_ardour/ardour_ui.cc
parent0ea9270a4baecfd6c2b090c379b90a277efd1fed (diff)
Fix moving master
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 8c2ec76053..1b72edbebb 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -4053,7 +4053,8 @@ PresentationInfo::order_t
ARDOUR_UI::translate_order (RouteDialogs::InsertAt place)
{
if (editor->get_selection().tracks.empty()) {
- return PresentationInfo::max_order;
+ // tracks empty actually means we have master, add 1
+ return PresentationInfo::max_order + 1;
}
PresentationInfo::order_t order_hint = PresentationInfo::max_order;