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; }