13
0

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:
Johannes Mueller 2019-04-19 20:32:19 +02:00
parent 1f982b532d
commit 23b196952b

View File

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