warn empty filename for QT < 5.12

This commit is contained in:
Phil Olynyk 2019-05-20 18:47:58 -04:00
parent a4cf207bd1
commit f05cc5fbc5

View File

@ -872,7 +872,11 @@ void PRS1Loader::ScanFiles(const QStringList & paths, int sessionid_base, Machin
// Parse the data chunks and read the files..
if (fi.canonicalFilePath().isEmpty()) {
qWarning() << fi;
#if QT_VERSION < QT_VERSION_CHECK(5,12,0)
qWarning() << fi.fileName() << "canonicalFilePath is empty";
#else
qWarning() << fi << "cannonicalFilePath is empty";
#endif
}
QList<PRS1DataChunk *> Chunks = ParseFile(fi.canonicalFilePath());