Fix build with missing qml-root-path
Commit 42d0089d44 added support
for multiple root paths. This works fine but it also added
"options->inputFileName" as fallback if nothing was provided.
The inputFileName cannot be used as root path (directory).
So let's use absolutePath() of that file.
Pick-to: 6.4 6.3 6.2
Change-Id: Id76a2cd79a82966bdac8240644b3c03ac4248066
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
bb10
parent
6a70ce99e4
commit
7da51c14d9
|
|
@ -1071,7 +1071,7 @@ bool readInputFile(Options *options)
|
|||
options->rootPaths.push_back(path.toString());
|
||||
}
|
||||
} else {
|
||||
options->rootPaths.push_back(options->inputFileName);
|
||||
options->rootPaths.push_back(QFileInfo(options->inputFileName).absolutePath());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue