diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2018-05-09 12:32:19 +0300 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2018-06-21 18:36:51 +0000 |
commit | 65db89eb7b6a9b53f7877d6e16bc4deeb367c285 (patch) | |
tree | da2a2c714684fc27a9738fd0b5d6b03bd4141b80 | |
parent | 3b278969696f54b305eb5d878a87f8e81b38257b (diff) | |
download | meta-qt5-65db89eb7b6a9b53f7877d6e16bc4deeb367c285.tar.gz |
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 <samuli.piippo@qt.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r-- | recipes-qt/qt5/qtbase/0003-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-qt/qt5/qtbase/0003-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch b/recipes-qt/qt5/qtbase/0003-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch index e2c6ed4b..2ea9e04d 100644 --- a/recipes-qt/qt5/qtbase/0003-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch +++ b/recipes-qt/qt5/qtbase/0003-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch | |||
@@ -29,7 +29,7 @@ index 422d08f32c..a59df4f20e 100644 | |||
29 | - QString qtconfig = qmake_libraryInfoFile(); | 29 | - QString qtconfig = qmake_libraryInfoFile(); |
30 | + QByteArray config = getenv("OE_QMAKE_QTCONF_PATH"); | 30 | + QByteArray config = getenv("OE_QMAKE_QTCONF_PATH"); |
31 | + QString qtconfig = QFile::decodeName(config); | 31 | + QString qtconfig = QFile::decodeName(config); |
32 | + if(!QFile::exists(qtconfig)) | 32 | + if(qtconfig.isEmpty() || !QFile::exists(qtconfig)) |
33 | + qtconfig = qmake_libraryInfoFile(); | 33 | + qtconfig = qmake_libraryInfoFile(); |
34 | if (QFile::exists(qtconfig)) | 34 | if (QFile::exists(qtconfig)) |
35 | return new QSettings(qtconfig, QSettings::IniFormat); | 35 | return new QSettings(qtconfig, QSettings::IniFormat); |