Fix restoring of CC121 configuration
The button ids are in the children of the cc121 protocol node, not in the protocol node itself.
This commit is contained in:
parent
1f982b532d
commit
23b196952b
@ -782,7 +782,7 @@ CC121::set_state (const XMLNode& node, int version)
|
||||
for (XMLNodeList::const_iterator n = node.children().begin(); n != node.children().end(); ++n) {
|
||||
if ((*n)->name() == X_("Button")) {
|
||||
int32_t xid;
|
||||
if (!node.get_property ("id", xid)) {
|
||||
if (!(*n)->get_property ("id", xid)) {
|
||||
continue;
|
||||
}
|
||||
ButtonMap::iterator b = buttons.find (ButtonID (xid));
|
||||
|
Loading…
Reference in New Issue
Block a user