nitpicker: disable reports by default
Prior this change, a config update would not disable reports if the report node disappeared during the update.
This commit is contained in:
parent
83705d3c78
commit
a00f9bcf99
|
@ -1302,13 +1302,17 @@ void Nitpicker::Main::handle_config(unsigned)
|
||||||
pointer_reporter.enabled(config()->xml_node().sub_node("report")
|
pointer_reporter.enabled(config()->xml_node().sub_node("report")
|
||||||
.attribute("pointer")
|
.attribute("pointer")
|
||||||
.has_value("yes"));
|
.has_value("yes"));
|
||||||
} catch (...) { }
|
} catch (...) {
|
||||||
|
pointer_reporter.enabled(false);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
focus_reporter.enabled(config()->xml_node().sub_node("report")
|
focus_reporter.enabled(config()->xml_node().sub_node("report")
|
||||||
.attribute("focus")
|
.attribute("focus")
|
||||||
.has_value("yes"));
|
.has_value("yes"));
|
||||||
} catch (...) { }
|
} catch (...) {
|
||||||
|
focus_reporter.enabled(false);
|
||||||
|
}
|
||||||
|
|
||||||
/* update domain registry and session policies */
|
/* update domain registry and session policies */
|
||||||
for (::Session *s = session_list.first(); s; s = s->next())
|
for (::Session *s = session_list.first(); s; s = s->next())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user