From: Friedemann Kleint Date: Thu, 12 Dec 2013 12:47:50 +0000 (+0200) Subject: windeployqt: Ignore empty paths returned by qmlimportscanner. X-Git-Tag: upstream/5.2.1~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=531440af4ef7628aa2ed3c1fbb5abb1b38141b13;p=platform%2Fupstream%2Fqttools.git windeployqt: Ignore empty paths returned by qmlimportscanner. Change-Id: If8d3964f82ff1ca92aa9d1df05bd4573261401fb Reviewed-by: Joerg Bornemann --- diff --git a/src/windeployqt/qmlutils.cpp b/src/windeployqt/qmlutils.cpp index bd207fb..2a41f8a 100644 --- a/src/windeployqt/qmlutils.cpp +++ b/src/windeployqt/qmlutils.cpp @@ -118,8 +118,10 @@ QmlImportScanResult runQmlImportScanner(const QString &directory, const QString const QJsonObject object = array.at(c).toObject(); if (object.value(QStringLiteral("type")).toString() == QLatin1String("module")) { const QString path = object.value(QStringLiteral("path")).toString(); - result.modulesDirectories.append(path); - findFileRecursion(QDir(path), Platform(platform), debug, &result.plugins); + if (!path.isEmpty()) { + result.modulesDirectories.append(path); + findFileRecursion(QDir(path), Platform(platform), debug, &result.plugins); + } } } result.ok = true;