PeekProperties not peeking at prop.txt files (causing wrong icon during loading)

This commit is contained in:
Mark Watkins 2016-03-01 21:51:14 +10:00
parent b4a88ee259
commit a0f512d22e

View File

@ -206,7 +206,8 @@ QString PRS1Loader::checkDir(const QString & path)
QDir dir(newpath);
QStringList dirs = dir.entryList(QDir::NoDotAndDotDot | QDir::Dirs);
if (dirs.size() > 0) {
machpath = dirs[0];
machpath = dir.cleanPath(newpath+"/"+dirs[0]);
}
}
@ -356,7 +357,9 @@ MachineInfo PRS1Loader::PeekInfo(const QString & path)
MachineInfo info = newInfo();
info.serial = newpath.section("/", -1);
PeekProperties(info, newpath+"/properties.txt");
if (!PeekProperties(info, newpath+"/properties.txt")) {
PeekProperties(info, newpath+"/PROP.TXT");
}
return info;
}