mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
another fix for binding shared_ptr's into signals
git-svn-id: svn://localhost/ardour2/branches/3.0@6194 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8724caeee8
commit
c5db9a21b9
3 changed files with 13 additions and 1 deletions
|
|
@ -156,6 +156,16 @@ EditorRegions::handle_new_regions (vector<boost::weak_ptr<Region> >& v)
|
|||
add_regions (v);
|
||||
}
|
||||
|
||||
void
|
||||
EditorRegions::region_hidden_weak (boost::weak_ptr<Region> wr)
|
||||
{
|
||||
boost::shared_ptr<Region> r (wr.lock());
|
||||
|
||||
if (r) {
|
||||
region_hidden (r);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
EditorRegions::region_hidden (boost::shared_ptr<Region> r)
|
||||
{
|
||||
|
|
@ -163,6 +173,7 @@ EditorRegions::region_hidden (boost::shared_ptr<Region> r)
|
|||
redisplay ();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
EditorRegions::add_regions (vector<boost::weak_ptr<Region> >& regions)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue