summaryrefslogtreecommitdiff
path: root/gtk2_ardour/selection.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-01-18 03:06:15 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-01-18 03:06:15 +0000
commit143983948ecbdc9e9e4c4f3fe2541b2bea22be87 (patch)
tree02330d1cbe5fc4f52ff2edc6ee2dab954f9077c1 /gtk2_ardour/selection.cc
parent6b0e0e379b763795f1356d9fe5cce836350dd18d (diff)
more fun and games with selection logic
git-svn-id: svn://localhost/ardour2/trunk@1353 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/selection.cc')
-rw-r--r--gtk2_ardour/selection.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk2_ardour/selection.cc b/gtk2_ardour/selection.cc
index 38a0cdd8e2..76767f539d 100644
--- a/gtk2_ardour/selection.cc
+++ b/gtk2_ardour/selection.cc
@@ -461,8 +461,13 @@ Selection::remove (const list<boost::shared_ptr<Playlist> >& pllist)
void
Selection::remove (RegionView* r)
{
- regions.remove (r);
- RegionsChanged ();
+ if (regions.remove (r)) {
+ RegionsChanged ();
+ }
+
+ if (!regions.involves (r->get_trackview())) {
+ remove (&r->get_trackview());
+ }
}