summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/sequence_property.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-03-31 22:45:27 +0000
committerCarl Hetherington <carl@carlh.net>2010-03-31 22:45:27 +0000
commitafc5e3bd0251dbcdbde27036569eb1acab026991 (patch)
treee8b85a38bb9707b15f1a4d721c5b8b8901245109 /libs/pbd/pbd/sequence_property.h
parent7f8b337d309fe62a442ef8c3086b7eb97c7e57e9 (diff)
Rework to set Stateful properties automagically in the Stateful class rather than delegating to subclasses.
git-svn-id: svn://localhost/ardour2/branches/3.0@6817 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/sequence_property.h')
-rw-r--r--libs/pbd/pbd/sequence_property.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/pbd/pbd/sequence_property.h b/libs/pbd/pbd/sequence_property.h
index 8bbc7c77d2..d9ef6255d2 100644
--- a/libs/pbd/pbd/sequence_property.h
+++ b/libs/pbd/pbd/sequence_property.h
@@ -123,6 +123,11 @@ class SequenceProperty : public PropertyBase
_change.removed.clear ();
}
+ void set_state_from_property (PropertyBase const * p) {
+ const ChangeRecord& change (dynamic_cast<const SequenceProperty*> (p)->change ());
+ update (change);
+ }
+
/** Given a record of changes to this property, pass it to a callback that will
* update the property in some appropriate way.
*