Fix build with missing qml-root-path
Commit 42d0089d44bec5628884d8cf6bf2b910a298a141 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. Change-Id: Id76a2cd79a82966bdac8240644b3c03ac4248066 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 7da51c14d9fba59288535d0a5acca5a6479f18a0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
000b710c54
commit
44830d2fd6
@ -1074,7 +1074,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…
x
Reference in New Issue
Block a user