mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-28 17:37:41 +01:00
MixerSnapshot will no derive its label and description from XML
In the past this was set manually using set_label() and set_description now it is set automatically to make is consistent
This commit is contained in:
parent
98adf74a78
commit
fa3752f126
1 changed files with 12 additions and 3 deletions
|
|
@ -515,11 +515,13 @@ void MixerSnapshot::load(const string path)
|
|||
root->get_property(X_("flags"), _flags);
|
||||
root->get_property(X_("favorite"), fav);
|
||||
root->get_property(X_("modified-with"), last_modified_with);
|
||||
root->get_property(X_("name"), label);
|
||||
set_favorite(atoi(fav.c_str()));
|
||||
|
||||
XMLNode* route_node = find_named_node(*root, "Routes");
|
||||
XMLNode* group_node = find_named_node(*root, "Groups");
|
||||
XMLNode* vca_node = find_named_node(*root, "VCAS");
|
||||
XMLNode* route_node = find_named_node(*root, X_("Routes"));
|
||||
XMLNode* group_node = find_named_node(*root, X_("Groups"));
|
||||
XMLNode* vca_node = find_named_node(*root, X_("VCAS"));
|
||||
XMLNode* desc_node = find_named_node(*root, X_("description"));
|
||||
|
||||
if(route_node) {
|
||||
XMLNodeList nlist = route_node->children();
|
||||
|
|
@ -556,6 +558,13 @@ void MixerSnapshot::load(const string path)
|
|||
vca_states.push_back(state);
|
||||
}
|
||||
}
|
||||
|
||||
if(desc_node) {
|
||||
XMLNode* node = desc_node->child(X_("text"));
|
||||
if(node) {
|
||||
_description = node->content();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void MixerSnapshot::load_from_session(string path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue