summaryrefslogtreecommitdiff
path: root/src/envmodule.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-11-27 12:45:55 -0500
committerGitHub <noreply@github.com>2019-11-27 12:45:55 -0500
commit892a19bfc613bbc6d157eced8356314026febbac (patch)
tree90a9a40896a08e064cf0f5cfd27ace47b50ce65f /src/envmodule.cpp
parent146360542d4ba186ca38002f618e974ed1b1766a (diff)
parent21cddd0ad3cef165c3860c2031b4cd00802c499d (diff)
Merge pull request #906 from isanae/various-fixes
Collection of small fixes
Diffstat (limited to 'src/envmodule.cpp')
-rw-r--r--src/envmodule.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/envmodule.cpp b/src/envmodule.cpp
index 13831631..8d348b5e 100644
--- a/src/envmodule.cpp
+++ b/src/envmodule.cpp
@@ -295,10 +295,19 @@ QDateTime Module::getTimestamp(const VS_FIXEDFILEINFO& fi) const
QString Module::getMD5() const
{
- if (m_path.contains("\\windows\\", Qt::CaseInsensitive)) {
- // don't calculate md5 for system files, it's not really relevant and
- // it takes a while
- return {};
+ static const std::set<QString> ignore = {
+ "\\windows\\",
+ "\\program files\\",
+ "\\program files (x86)\\",
+ "\\programdata\\"
+ };
+
+ // don't calculate md5 for system files, it's not really relevant and
+ // it takes a while
+ for (auto&& i : ignore) {
+ if (m_path.contains(i, Qt::CaseInsensitive)) {
+ return {};
+ }
}
// opening the file