summaryrefslogtreecommitdiff
path: root/libs/pbd/stateful_diff_command.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-04-02 00:21:08 +0000
committerCarl Hetherington <carl@carlh.net>2010-04-02 00:21:08 +0000
commitb68256a8ff670d0f9206858daa69e1bdf7810684 (patch)
treea29890adce503a5aa0c433f068479d7bdc2d9a4c /libs/pbd/stateful_diff_command.cc
parent0fc44fc2f1b9d9706e67abe8a41c70ca3231af60 (diff)
Fix up route group state signal handling. Make the PropertyList version
of Stateful::set_properties emit a changed signal after it has done its work. git-svn-id: svn://localhost/ardour2/branches/3.0@6826 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/stateful_diff_command.cc')
-rw-r--r--libs/pbd/stateful_diff_command.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/libs/pbd/stateful_diff_command.cc b/libs/pbd/stateful_diff_command.cc
index 0468ac3e8a..635fe4829a 100644
--- a/libs/pbd/stateful_diff_command.cc
+++ b/libs/pbd/stateful_diff_command.cc
@@ -71,10 +71,7 @@ StatefulDiffCommand::operator() ()
boost::shared_ptr<Stateful> s (_object.lock());
if (s) {
- PropertyChange changed = s->set_properties (*_redo);
- if (!changed.empty()) {
- s->PropertyChanged (changed);
- }
+ s->set_properties (*_redo);
}
}
@@ -85,11 +82,7 @@ StatefulDiffCommand::undo ()
if (s) {
std::cerr << "Undoing a stateful diff command\n";
- PropertyChange changed = s->set_properties (*_undo);
- if (!changed.empty()) {
- std::cerr << "Sending changed\n";
- s->PropertyChanged (changed);
- }
+ s->set_properties (*_undo);
}
}