diff options
| author | Eike Ziller <eike.ziller@qt.io> | 2025-11-03 15:28:46 +0100 |
|---|---|---|
| committer | Eike Ziller <eike.ziller@qt.io> | 2025-11-04 07:36:58 +0000 |
| commit | 23256ed6fde7170b5c21d0d1f01b82ec66b3d22a (patch) | |
| tree | 4e0b0efcc41da161d6786b49767f73c3af3f1b2e | |
| parent | 38d74d221a59295ef7704829ea24d9a69d3477a5 (diff) | |
Change-Id: Iec3467dc8e1e1477e8674ea2881e60ede0dc7d53
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
| -rw-r--r-- | src/usagestatisticplugin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/usagestatisticplugin.cpp b/src/usagestatisticplugin.cpp index 6500b0e..2df9c2f 100644 --- a/src/usagestatisticplugin.cpp +++ b/src/usagestatisticplugin.cpp @@ -250,6 +250,11 @@ public: return mimeType.matchesName(Utils::Constants::QML_MIMETYPE) || mimeType.matchesName(Utils::Constants::QMLUI_MIMETYPE); }); + if (qmlFiles.isEmpty()) { + qCDebug(qmlmodulesLog) << QString("No QML files found for project \"%1\".") + .arg(project->displayName()); + return; + } qCDebug(qmlmodulesLog) << QString("Starting \"%1\" for project \"%2\" and files %3") .arg( qmlimportscanner.toUserOutput(), |
