13
0

vtl: fix duplicate saved settings

This commit is contained in:
Robin Gareus 2013-06-10 17:01:24 +02:00
parent 97ec274512
commit b203da5eb9

View File

@ -423,6 +423,7 @@ VideoMonitor::save_session ()
if (!_session) { return; }
XMLNode* node = _session->extra_xml (X_("XJSettings"));
if (!node) return;
node->remove_nodes_and_delete("XJSetting");
for(XJSettings::const_iterator it = xjadeo_settings.begin(); it != xjadeo_settings.end(); ++it) {
XMLNode* child = node->add_child (X_("XJSetting"));