diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-04 13:15:04 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-03-04 13:15:04 +0000 |
commit | 6dde6c5a8fc0630d625f4b73e253ed7e7a48c03a (patch) | |
tree | 17160bb08ad26459194490e420e2a15f94e6d4c8 /libs/pbd/stateful.cc | |
parent | c2c224727eee4c16bd64ca4a5b5bb2d276f5afe3 (diff) |
goodbye to MementoCommand for playlists
git-svn-id: svn://localhost/ardour2/branches/3.0@6726 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/stateful.cc')
-rw-r--r-- | libs/pbd/stateful.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/pbd/stateful.cc b/libs/pbd/stateful.cc index 1bf8c17d83..89b22edd24 100644 --- a/libs/pbd/stateful.cc +++ b/libs/pbd/stateful.cc @@ -287,5 +287,16 @@ Stateful::resume_property_changes () send_change (what_changed); } +bool +Stateful::changed() const +{ + for (OwnedPropertyList::const_iterator i = _properties->begin(); i != _properties->end(); ++i) { + if (i->second->changed()) { + return true; + } + } + + return false; +} } // namespace PBD |