Continue parsing contexts when an unsupported one is encountered
This commit is contained in:
parent
1ffc002132
commit
a4a5fc866d
1 changed files with 8 additions and 3 deletions
|
@ -491,9 +491,14 @@ static void parse_mouse(xmlNodePtr node, gpointer d)
|
||||||
modcxstr = g_strdup(cxstr); /* make a copy to mutilate */
|
modcxstr = g_strdup(cxstr); /* make a copy to mutilate */
|
||||||
while (frame_next_context_from_string(modcxstr, &cx)) {
|
while (frame_next_context_from_string(modcxstr, &cx)) {
|
||||||
if (!cx) {
|
if (!cx) {
|
||||||
g_message(_("Invalid context \"%s\" in mouse binding"),
|
gchar *s = strchr(modcxstr, ' ');
|
||||||
cxstr);
|
if (s) {
|
||||||
break;
|
*s = '\0';
|
||||||
|
g_message(_("Invalid context \"%s\" in mouse binding"),
|
||||||
|
modcxstr);
|
||||||
|
*s = ' ';
|
||||||
|
}
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
nbut = obt_xml_find_node(n->children, "mousebind");
|
nbut = obt_xml_find_node(n->children, "mousebind");
|
||||||
|
|
Loading…
Reference in a new issue