summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/updaterwindow.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/updaterwindow.cpp b/src/gui/updaterwindow.cpp
index a614b7288..7ff7d6857 100644
--- a/src/gui/updaterwindow.cpp
+++ b/src/gui/updaterwindow.cpp
@@ -86,6 +86,20 @@ std::vector<UpdateFile> loadXMLFile(const std::string &fileName)
file.hash = XML::getProperty(fileNode, "hash", "");
file.type = XML::getProperty(fileNode, "type", "data");
file.desc = XML::getProperty(fileNode, "description", "");
+ const std::string version = XML::getProperty(
+ fileNode, "version", "");
+ if (!version.empty())
+ {
+ if (version > CHECK_VERSION)
+ continue;
+ }
+ const std::string notVersion = XML::getProperty(
+ fileNode, "notVersion", "");
+ if (!notVersion.empty())
+ {
+ if (notVersion <= CHECK_VERSION)
+ continue;
+ }
if (XML::getProperty(fileNode, "required", "yes") == "yes")
file.required = true;
else