mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 15:36:24 +01:00
Oops. Actually make new Properties changes work.
git-svn-id: svn://localhost/ardour2/branches/3.0@6822 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f08a4e014d
commit
2ad3940b54
2 changed files with 0 additions and 18 deletions
|
|
@ -57,8 +57,6 @@ class SessionObject : public SessionHandleRef, public PBD::StatefulDestructible
|
|||
Session& session() const { return _session; }
|
||||
std::string name() const { return _name; }
|
||||
|
||||
bool set_property (const PBD::PropertyBase& prop);
|
||||
|
||||
virtual bool set_name (const std::string& str) {
|
||||
if (_name != str) {
|
||||
_name = str;
|
||||
|
|
|
|||
|
|
@ -38,19 +38,3 @@ SessionObject::make_property_quarks ()
|
|||
DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for name = %1\n", Properties::name.property_id));
|
||||
}
|
||||
|
||||
bool
|
||||
SessionObject::set_property (const PropertyBase& prop)
|
||||
{
|
||||
if (prop == Properties::name.property_id) {
|
||||
std::string str = dynamic_cast<const PropertyTemplate<std::string>*>(&prop)->val();
|
||||
if (_name != str) {
|
||||
DEBUG_TRACE (DEBUG::Properties, string_compose ("session object named %1 renamed %2\n",
|
||||
_name.val(), str));
|
||||
_name = str;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue