diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-25 22:42:35 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-25 22:42:35 +0000 |
commit | 884ee2a3ccf545cc0502f82191e9cc54257e5420 (patch) | |
tree | 916f804e3e694f1727ff6c1c35b718d156a02a90 /libs/ardour/playlist.cc | |
parent | b92ebde801af5c499d16258860ee7a16da9623c4 (diff) |
check dependents in Playlist after moving a region to a specific layer; make region layering editor appear reliably; click on xfade sets clicked_routeview
git-svn-id: svn://localhost/ardour2/branches/3.0@7692 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/playlist.cc')
-rw-r--r-- | libs/ardour/playlist.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc index 9c980ff735..93a4d520e8 100644 --- a/libs/ardour/playlist.cc +++ b/libs/ardour/playlist.cc @@ -2603,6 +2603,8 @@ Playlist::move_region_to_layer (layer_t target_layer, boost::shared_ptr<Region> } } + freeze (); + /* now reset the layers without holding the region lock */ for (list<LayerInfo>::iterator x = layerinfo.begin(); x != layerinfo.end(); ++x) { @@ -2611,15 +2613,16 @@ Playlist::move_region_to_layer (layer_t target_layer, boost::shared_ptr<Region> region->set_layer (target_layer); -#if 0 - /* now check all dependents */ + /* now check all dependents, since we changed the layering */ for (list<LayerInfo>::iterator x = layerinfo.begin(); x != layerinfo.end(); ++x) { check_dependents (x->first, false); } check_dependents (region, false); -#endif + notify_layering_changed (); + + thaw (); return 0; } |