From b203da5eb9deaeef10b6d2c9da4fad25f2e097f8 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 10 Jun 2013 17:01:24 +0200 Subject: [PATCH] vtl: fix duplicate saved settings --- gtk2_ardour/video_monitor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk2_ardour/video_monitor.cc b/gtk2_ardour/video_monitor.cc index c33b96fda2..2cefb7946c 100644 --- a/gtk2_ardour/video_monitor.cc +++ b/gtk2_ardour/video_monitor.cc @@ -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"));