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:
Nikolaus Gullotta 2019-09-11 15:05:41 -05:00 committed by Nikolaus Gullotta
parent 98adf74a78
commit fa3752f126
No known key found for this signature in database
GPG key ID: 565F60578092AA31

View file

@ -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)