summaryrefslogtreecommitdiff
path: root/src/gui/windows/updaterwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-13 21:34:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-13 21:34:00 +0300
commitc28aa31fe3d701530280ac92c92e8dff36e65f03 (patch)
treec20c65fae46ddf122c845a48835a22d3ac4f239c /src/gui/windows/updaterwindow.cpp
parent9f2b625b1d5832d8e7c51f0cc3e61a2e90effd0c (diff)
downloadplus-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.cpp5
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", "");