From 531440af4ef7628aa2ed3c1fbb5abb1b38141b13 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 12 Dec 2013 14:47:50 +0200 Subject: [PATCH] windeployqt: Ignore empty paths returned by qmlimportscanner. Change-Id: If8d3964f82ff1ca92aa9d1df05bd4573261401fb Reviewed-by: Joerg Bornemann --- src/windeployqt/qmlutils.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.7.4