From 08dc59e8bff25736d15d11313e0296f60e248e0a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 8 Jan 2012 21:37:28 +0300 Subject: Add check for update files path. --- src/gui/updaterwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 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 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); } } -- cgit v1.2.3-70-g09d2