qtbase: don't pass empty filename to function
PATCH 1/1 qtbase: don't pass empty filename to function
The environment variable is empty when running qmake from SDK or in device, which gives 'Empty filename passed to function' warning.
Signed-off-by Samuli Piippo <[email protected]>
--- ...3-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-qt/qt5/qtbase/0003-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch +1 -1
@@ -29,7 +29,7 @@ index 422d08f..a59df4f 100644 - QString qtconfig = qmake_libraryInfoFile(); + QByteArray config = getenv("OE_QMAKE_QTCONF_PATH"); + QString qtconfig = QFile::decodeName(config); -+ if(!QFile::exists(qtconfig)) ++ if(qtconfig.isEmpty() || !QFile::exists(qtconfig)) + qtconfig = qmake_libraryInfoFile(); if (QFile::exists(qtconfig)) return new QSettings(qtconfig, QSettings::IniFormat);
Signature · 1 line
2.17.0