summaryrefslogtreecommitdiff
path: root/gtk2_ardour/region_selection.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-01-18 16:45:29 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-01-18 16:45:29 +0000
commitf4fe4d36b1db9d5c267273e2f772e9d6b3746d1c (patch)
tree5db9198b964c506244cfe1096d94898fa5ae7426 /gtk2_ardour/region_selection.cc
parent058911a1d8b4262518771343e0a26a70469e1d57 (diff)
more games with selection
git-svn-id: svn://localhost/ardour2/trunk@1360 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/region_selection.cc')
-rw-r--r--gtk2_ardour/region_selection.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/region_selection.cc b/gtk2_ardour/region_selection.cc
index 060c29792b..34810691f5 100644
--- a/gtk2_ardour/region_selection.cc
+++ b/gtk2_ardour/region_selection.cc
@@ -78,12 +78,12 @@ bool RegionSelection::contains (RegionView* rv) const
return find (begin(), end(), rv) != end();
}
-void
+bool
RegionSelection::add (RegionView* rv)
{
if (contains (rv)) {
/* we already have it */
- return;
+ return false;
}
rv->RegionViewGoingAway.connect (mem_fun(*this, &RegionSelection::remove_it));
@@ -101,6 +101,8 @@ RegionSelection::add (RegionView* rv)
// add to layer sorted list
add_to_layer (rv);
+
+ return true;
}
void