diff --git a/src/core/scan.cpp b/src/core/scan.cpp index 3f5e0923..a29ee59e 100644 --- a/src/core/scan.cpp +++ b/src/core/scan.cpp @@ -122,6 +122,7 @@ bool QmlScanner::scanQmlFile(const QString& path) { while (importCursor != line.length()) { auto c = line.at(importCursor); if (c == '.') c = '/'; + else if (c == ' ') break; else if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_') {