diff options
author | Carl Hetherington <carl@carlh.net> | 2011-08-31 19:26:25 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-08-31 19:26:25 +0000 |
commit | 9f1b50cc3e953473240949abf083e0124fcae2af (patch) | |
tree | 94b4b63fdf31e90043163079a7e3f345d7ea8bfd | |
parent | 881b5a43e755860e91bf596bcac1f8c105b0a843 (diff) |
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
-rw-r--r-- | gtk2_ardour/group_tabs.cc | 5 |
1 files 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 { |