Fix derp: there is no static QFileInfo::exists in Qt 5.1.1
This commit is contained in:
parent
3fabb11f4c
commit
208209e4a7
@ -143,13 +143,15 @@ bool OneSixLibrary::filesExist()
|
|||||||
{
|
{
|
||||||
QString cooked_storage = storage;
|
QString cooked_storage = storage;
|
||||||
cooked_storage.replace("${arch}", "32");
|
cooked_storage.replace("${arch}", "32");
|
||||||
if (!QFileInfo::exists(PathCombine("libraries", cooked_storage)))
|
QFileInfo info32(PathCombine("libraries", cooked_storage));
|
||||||
|
if (!info32.exists())
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
cooked_storage = storage;
|
cooked_storage = storage;
|
||||||
cooked_storage.replace("${arch}", "64");
|
cooked_storage.replace("${arch}", "64");
|
||||||
if (!QFileInfo::exists(PathCombine("libraries", cooked_storage)))
|
QFileInfo info64(PathCombine("libraries", cooked_storage));
|
||||||
|
if (!info64.exists())
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user