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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user