mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-24 06:30:45 +00:00
warn empty filename for QT < 5.12
This commit is contained in:
parent
a4cf207bd1
commit
f05cc5fbc5
@ -872,7 +872,11 @@ void PRS1Loader::ScanFiles(const QStringList & paths, int sessionid_base, Machin
|
|||||||
|
|
||||||
// Parse the data chunks and read the files..
|
// Parse the data chunks and read the files..
|
||||||
if (fi.canonicalFilePath().isEmpty()) {
|
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());
|
QList<PRS1DataChunk *> Chunks = ParseFile(fi.canonicalFilePath());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user