From 17088ee3ea5af1e6174b098bb5bcfdaec6ebf9b0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 2 Mar 2010 18:05:26 +0000 Subject: (1) remove most uses of MementoCommand for Playlist and Region (2) move frozen state from Region into Stateful, renamed "suspend property changes" (3) successive changes to a Property (scalar) after clear_history() do not keep resetting the old value (fixes region trim) git-svn-id: svn://localhost/ardour2/branches/3.0@6720 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/region_factory.cc | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'libs/ardour/region_factory.cc') diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc index d2c5fa1b22..3f4af2462c 100644 --- a/libs/ardour/region_factory.cc +++ b/libs/ardour/region_factory.cc @@ -67,7 +67,6 @@ RegionFactory::create (boost::shared_ptr region) } if (ret) { - ret->unlock_property_changes (); map_add (ret); /* pure copy constructor - no property list */ @@ -106,10 +105,7 @@ RegionFactory::create (boost::shared_ptr region, frameoffset_t offset, c } if (ret) { - ret->set_properties (plist); - ret->unlock_property_changes (); - map_add (ret); if (announce) { @@ -149,10 +145,7 @@ RegionFactory::create (boost::shared_ptr region, const PropertyList& pli } if (ret) { - ret->set_properties (plist); - ret->unlock_property_changes (); - map_add (ret); if (announce) { @@ -195,8 +188,6 @@ RegionFactory::create (boost::shared_ptr region, const SourceList& srcs, if (ret) { ret->set_properties (plist); - ret->unlock_property_changes (); - map_add (ret); if (announce) { @@ -242,8 +233,6 @@ RegionFactory::create (const SourceList& srcs, const PropertyList& plist, bool a if (ret) { ret->set_properties (plist); - ret->unlock_property_changes (); - map_add (ret); if (announce) { @@ -290,7 +279,6 @@ RegionFactory::create (SourceList& srcs, const XMLNode& node) if (ret->set_state (node, Stateful::loading_state_version)) { ret.reset (); } else { - ret->unlock_property_changes (); map_add (ret); CheckNewRegion (ret); } -- cgit v1.2.3