diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-13 21:34:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-13 21:34:00 +0300 |
commit | c28aa31fe3d701530280ac92c92e8dff36e65f03 (patch) | |
tree | c20c65fae46ddf122c845a48835a22d3ac4f239c /src/gui/windows/updaterwindow.cpp | |
parent | 9f2b625b1d5832d8e7c51f0cc3e61a2e90effd0c (diff) | |
download | plus-c28aa31fe3d701530280ac92c92e8dff36e65f03.tar.gz plus-c28aa31fe3d701530280ac92c92e8dff36e65f03.tar.bz2 plus-c28aa31fe3d701530280ac92c92e8dff36e65f03.tar.xz plus-c28aa31fe3d701530280ac92c92e8dff36e65f03.zip |
in resources.xml allow load updates also from <update2> tags.
Diffstat (limited to 'src/gui/windows/updaterwindow.cpp')
-rw-r--r-- | src/gui/windows/updaterwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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<UpdateFile> 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", ""); |