From 9f1b50cc3e953473240949abf083e0124fcae2af Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 31 Aug 2011 19:26:25 +0000 Subject: [PATCH] Fix thinko with dragging one of >1 tabs in the same route group (#4301). git-svn-id: svn://localhost/ardour2/branches/3.0@10044 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/group_tabs.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/group_tabs.cc b/gtk2_ardour/group_tabs.cc index 2e35d84809..4f194235e2 100644 --- a/gtk2_ardour/group_tabs.cc +++ b/gtk2_ardour/group_tabs.cc @@ -205,8 +205,9 @@ GroupTabs::on_button_release_event (GdkEventButton* ev) for (RouteList::iterator i = r->begin(); i != r->end(); ++i) { if (find (routes.begin(), routes.end(), *i) == routes.end()) { - /* this route is not on the list of those that should be in _dragging's group */ - if ((*i)->route_group() == _dragging->group) { + /* this route is not contained in the tab we are dragging ... */ + if ((*i)->route_group() != _dragging->group) { + /* and it's not in the dragged tab's group either */ _dragging->group->remove (*i); } } else {