dont allow 0 desktops
This commit is contained in:
parent
abde4bc153
commit
9e60c45cda
1 changed files with 5 additions and 2 deletions
|
@ -227,8 +227,11 @@ static void parse_desktops(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
|
||||||
|
|
||||||
node = node->children;
|
node = node->children;
|
||||||
|
|
||||||
if ((n = parse_find_node("number", node)))
|
if ((n = parse_find_node("number", node))) {
|
||||||
config_desktops_num = parse_int(doc, n);
|
guint d = parse_int(doc, n);
|
||||||
|
if (d > 0)
|
||||||
|
config_desktops_num = d;
|
||||||
|
}
|
||||||
if ((n = parse_find_node("names", node))) {
|
if ((n = parse_find_node("names", node))) {
|
||||||
GSList *it;
|
GSList *it;
|
||||||
xmlNodePtr nname;
|
xmlNodePtr nname;
|
||||||
|
|
Loading…
Reference in a new issue