diff options
author | Marco Benelli <marco.benelli@qt.io> | 2017-08-17 16:33:04 +0200 |
---|---|---|
committer | Marco Benelli <marco.benelli@qt.io> | 2017-08-21 06:56:03 +0000 |
commit | 93ff90d943825b4acb572a37c6514367c390d5b1 (patch) | |
tree | 33569098dc75d8d4c5230329b82f795b050d3f14 | |
parent | 7c45b035b97ce705d536932965673dca7cfa489e (diff) |
qmlplugindump: fix bug in reading command line
Task-number: QTBUG-58264
Change-Id: I317fb18d9ceb8738f2f132b8703dc1af3b17d35b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r-- | tools/qmlplugindump/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp index 982936011d..a71899941e 100644 --- a/tools/qmlplugindump/main.cpp +++ b/tools/qmlplugindump/main.cpp @@ -999,7 +999,7 @@ int main(int argc, char *argv[]) // Check which kind of application should be instantiated. bool useQApplication = false; for (int i = 0; i < argc; ++i) { - QString arg = QLatin1String(argv[1]); + QString arg = QLatin1String(argv[i]); if (arg == QLatin1String("--qapp") || arg == QLatin1String("-qapp")) useQApplication = true; } |