From c28aa31fe3d701530280ac92c92e8dff36e65f03 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 13 Jan 2014 21:34:00 +0300 Subject: in resources.xml allow load updates also from tags. --- src/gui/windows/updaterwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp index 76cfb801f..01b1b65cc 100644 --- a/src/gui/windows/updaterwindow.cpp +++ b/src/gui/windows/updaterwindow.cpp @@ -74,8 +74,11 @@ static std::vector loadXMLFile(const std::string &fileName) for_each_xml_child_node(fileNode, rootNode) { - if (!xmlNameEqual(fileNode, "update")) + if (!xmlNameEqual(fileNode, "update") + && !xmlNameEqual(fileNode, "update2")) + { continue; + } UpdateFile file; file.name = XML::getProperty(fileNode, "file", ""); -- cgit v1.2.3-70-g09d2