summaryrefslogtreecommitdiff
path: root/src/gui/updaterwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/updaterwindow.cpp')
-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);
}
}