diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-01-18 22:16:47 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-01-18 22:16:47 +0100 |
commit | 208209e4a73e6ce75b8ecbd40b5cf7c6e9117eb5 (patch) | |
tree | 19920946e63c83effcba157f76c72e3b5deace42 /logic/OneSixLibrary.cpp | |
parent | 3fabb11f4c59baffb14db00d338d9efe342e277e (diff) | |
download | MultiMC-208209e4a73e6ce75b8ecbd40b5cf7c6e9117eb5.tar MultiMC-208209e4a73e6ce75b8ecbd40b5cf7c6e9117eb5.tar.gz MultiMC-208209e4a73e6ce75b8ecbd40b5cf7c6e9117eb5.tar.lz MultiMC-208209e4a73e6ce75b8ecbd40b5cf7c6e9117eb5.tar.xz MultiMC-208209e4a73e6ce75b8ecbd40b5cf7c6e9117eb5.zip |
Fix derp: there is no static QFileInfo::exists in Qt 5.1.1
Diffstat (limited to 'logic/OneSixLibrary.cpp')
-rw-r--r-- | logic/OneSixLibrary.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/logic/OneSixLibrary.cpp b/logic/OneSixLibrary.cpp index cf29a832..510be52b 100644 --- a/logic/OneSixLibrary.cpp +++ b/logic/OneSixLibrary.cpp @@ -143,13 +143,15 @@ bool OneSixLibrary::filesExist() { QString cooked_storage = storage; cooked_storage.replace("${arch}", "32"); - if (!QFileInfo::exists(PathCombine("libraries", cooked_storage))) + QFileInfo info32(PathCombine("libraries", cooked_storage)); + if (!info32.exists()) { return false; } cooked_storage = storage; cooked_storage.replace("${arch}", "64"); - if (!QFileInfo::exists(PathCombine("libraries", cooked_storage))) + QFileInfo info64(PathCombine("libraries", cooked_storage)); + if (!info64.exists()) { return false; } |