summaryrefslogtreecommitdiff
path: root/src/gui
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 21:37:28 +0300
commit08dc59e8bff25736d15d11313e0296f60e248e0a (patch)
treeba15a9ea063305a13a0007e5694b089fab316e88 /src/gui
parent72d496fb243f622c9a582d593b0d51ec057acd37 (diff)
downloadmanaplus-08dc59e8bff25736d15d11313e0296f60e248e0a.tar.gz
manaplus-08dc59e8bff25736d15d11313e0296f60e248e0a.tar.bz2
manaplus-08dc59e8bff25736d15d11313e0296f60e248e0a.tar.xz
manaplus-08dc59e8bff25736d15d11313e0296f60e248e0a.zip
Add check for update files path.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/updaterwindow.cpp5
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);
}
}