diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-01-11 21:45:21 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-01-11 21:45:21 +0000 |
commit | bb02870c15a9db3f46e2e24d1d5c72e9ca5dfe0b (patch) | |
tree | 08bb1cc993982c52227b1108913d838f4a55eeb1 /libs/ardour/named_selection.cc | |
parent | e545b222b9ff9bde402da247910db424a04c1d2e (diff) |
various fixes to named selection mgmt and display, plus fixes for xfade mgmt and a bit of debugging for them too
git-svn-id: svn://localhost/ardour2/trunk@1313 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/named_selection.cc')
-rw-r--r-- | libs/ardour/named_selection.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/libs/ardour/named_selection.cc b/libs/ardour/named_selection.cc index ecce09692f..b5a71f6403 100644 --- a/libs/ardour/named_selection.cc +++ b/libs/ardour/named_selection.cc @@ -40,8 +40,18 @@ NamedSelection::NamedSelection (string n, PlaylistList& l) { playlists = l; for (PlaylistList::iterator i = playlists.begin(); i != playlists.end(); ++i) { + string new_name; + + /* rename playlists to reflect our ownership */ + + new_name = name; + new_name += '/'; + new_name += (*i)->name(); + + (*i)->set_name (new_name); (*i)->use(); } + NamedSelectionCreated (this); } @@ -90,7 +100,8 @@ NamedSelection::NamedSelection (Session& session, const XMLNode& node) NamedSelection::~NamedSelection () { for (PlaylistList::iterator i = playlists.begin(); i != playlists.end(); ++i) { - (*i)->release(); + (*i)->release (); + (*i)->GoingAway (); } } |