summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-08 21:37:28 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-08 22:43:58 +0300
commitc04b7289eb1dd2bcd51d5d024af3ab419f958e28 (patch)
treead12ca133b37a599cff8a4b098f1e2aa778c8f1e
parentc116c209d0d58abef4066e4be20b9a858d278a63 (diff)
downloadplus-c04b7289eb1dd2bcd51d5d024af3ab419f958e28.tar.gz
plus-c04b7289eb1dd2bcd51d5d024af3ab419f958e28.tar.bz2
plus-c04b7289eb1dd2bcd51d5d024af3ab419f958e28.tar.xz
plus-c04b7289eb1dd2bcd51d5d024af3ab419f958e28.zip
Add check for update files path.
-rw-r--r--src/gui/updatewindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index bc74aeb58..ef835a512 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -87,7 +87,8 @@ std::vector<updateFile> loadXMLFile(const std::string &fileName)
else
file.required = false;
- files.push_back(file);
+ if (checkPath(file.name))
+ files.push_back(file);
}
return files;
@@ -114,7 +115,7 @@ std::vector<updateFile> loadTxtFile(const std::string &fileName)
thisFile.required = true;
thisFile.desc = "";
- if (!thisFile.name.empty())
+ if (!thisFile.name.empty() && checkPath(thisFile.name))
files.push_back(thisFile);
}
}