From f05cc5fbc50d880102dd55825ef0229cbfa544ba Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Mon, 20 May 2019 18:47:58 -0400 Subject: [PATCH] warn empty filename for QT < 5.12 --- oscar/SleepLib/loader_plugins/prs1_loader.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/oscar/SleepLib/loader_plugins/prs1_loader.cpp b/oscar/SleepLib/loader_plugins/prs1_loader.cpp index 7db293db..7b3be255 100644 --- a/oscar/SleepLib/loader_plugins/prs1_loader.cpp +++ b/oscar/SleepLib/loader_plugins/prs1_loader.cpp @@ -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 Chunks = ParseFile(fi.canonicalFilePath());