summaryrefslogtreecommitdiffstats
path: root/src/tools/androiddeployqt/main.cpp
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2022-07-27 15:04:28 +0200
committerAndré Klitzing <aklitzing@gmail.com>2022-07-28 14:46:52 +0200
commit7da51c14d9fba59288535d0a5acca5a6479f18a0 (patch)
tree893944ee4b1c7abd24650ea5096afbd55bfaceec /src/tools/androiddeployqt/main.cpp
parent6a70ce99e42482991241d3f17cf1f7cb84bb5d44 (diff)
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. Pick-to: 6.4 6.3 6.2 Change-Id: Id76a2cd79a82966bdac8240644b3c03ac4248066 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'src/tools/androiddeployqt/main.cpp')
-rw-r--r--src/tools/androiddeployqt/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/androiddeployqt/main.cpp b/src/tools/androiddeployqt/main.cpp
index 3db00ad01f..f9ba885a33 100644
--- a/src/tools/androiddeployqt/main.cpp
+++ b/src/tools/androiddeployqt/main.cpp
@@ -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());
}
}