diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2024-02-22 11:38:21 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-02-23 10:11:42 +0100 |
commit | 7fae7bf04a28ff0751c8ff0aef0a1c42dc6db32d (patch) | |
tree | 16a9211419724f1a642d9047bf683526f5b9e5bb /tools/qmllint/main.cpp | |
parent | c6528ce8c4f474a5e27d9d3e447d3e145af66ee2 (diff) |
qmllint: With --bare do not use the current directory
That's what --bare promises after all.
Pick-to: 6.7 6.6 6.5
Fixes: QTBUG-115478
Change-Id: Iae7563203709bc28b7bcaa0da68cad1826c035d9
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'tools/qmllint/main.cpp')
-rw-r--r-- | tools/qmllint/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qmllint/main.cpp b/tools/qmllint/main.cpp index 531f056a28..0c59e47169 100644 --- a/tools/qmllint/main.cpp +++ b/tools/qmllint/main.cpp @@ -296,7 +296,7 @@ All warnings can be set to three levels: QStringList defaultQmldirFiles; if (parser.isSet(qmldirFilesOption)) { defaultQmldirFiles = parser.values(qmldirFilesOption); - } else { + } else if (!parser.isSet(qmlImportNoDefault)){ // If nothing given explicitly, use the qmldir file from the current directory. QFileInfo qmldirFile(QStringLiteral("qmldir")); if (qmldirFile.isFile()) { |