summaryrefslogtreecommitdiff
path: root/src/gui/updaterwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-08 20:42:11 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-09 00:27:32 +0300
commitfff9a49359916f7b6f5ef2674e633dab6d02319e (patch)
treefb4cce56ef616e4a9122f57ecb9b9cf2f14f2c76 /src/gui/updaterwindow.cpp
parent089a85eb5fbe48f309c1e472e6ca9d2239894b9d (diff)
downloadmv-fff9a49359916f7b6f5ef2674e633dab6d02319e.tar.gz
mv-fff9a49359916f7b6f5ef2674e633dab6d02319e.tar.bz2
mv-fff9a49359916f7b6f5ef2674e633dab6d02319e.tar.xz
mv-fff9a49359916f7b6f5ef2674e633dab6d02319e.zip
ignore all update groups except default.
Diffstat (limited to 'src/gui/updaterwindow.cpp')
-rw-r--r--src/gui/updaterwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/updaterwindow.cpp b/src/gui/updaterwindow.cpp
index 7ff7d6857..197b97e3a 100644
--- a/src/gui/updaterwindow.cpp
+++ b/src/gui/updaterwindow.cpp
@@ -77,10 +77,12 @@ std::vector<UpdateFile> loadXMLFile(const std::string &fileName)
for_each_xml_child_node(fileNode, rootNode)
{
- // Ignore all tags except for the "update" tags
if (!xmlNameEqual(fileNode, "update"))
continue;
+ if (XML::getProperty(fileNode, "group", "default") != "default")
+ continue;
+
UpdateFile file;
file.name = XML::getProperty(fileNode, "file", "");
file.hash = XML::getProperty(fileNode, "hash", "");