diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-08 21:37:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-08 21:37:28 +0300 |
commit | 08dc59e8bff25736d15d11313e0296f60e248e0a (patch) | |
tree | ba15a9ea063305a13a0007e5694b089fab316e88 | |
parent | 72d496fb243f622c9a582d593b0d51ec057acd37 (diff) | |
download | mv-08dc59e8bff25736d15d11313e0296f60e248e0a.tar.gz mv-08dc59e8bff25736d15d11313e0296f60e248e0a.tar.bz2 mv-08dc59e8bff25736d15d11313e0296f60e248e0a.tar.xz mv-08dc59e8bff25736d15d11313e0296f60e248e0a.zip |
Add check for update files path.
-rw-r--r-- | src/gui/updaterwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/updaterwindow.cpp b/src/gui/updaterwindow.cpp index 089aa1ea1..4e641b5ca 100644 --- a/src/gui/updaterwindow.cpp +++ b/src/gui/updaterwindow.cpp @@ -91,7 +91,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; @@ -118,7 +119,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); } } |