diff options
author | Kevin Ottens <kevin.ottens@kdab.com> | 2015-03-05 11:46:38 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@digia.com> | 2015-03-06 06:39:14 +0000 |
commit | b049085a2c13abe9cf89308d02a90b9a0be6cde1 (patch) | |
tree | 5dbb69735c119c9f6ea8e23dbd6320afc9c83d52 /tools/qml/main.cpp | |
parent | e157fcba9e515e63410d6b96b35c589182a4d5fa (diff) |
qml tool: don't process the command name
The first argument is the command name. There's no need to
compare it against possible arguments.
Change-Id: I776f10b6872286f89f07582b81d4990260ef9ddc
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
Diffstat (limited to 'tools/qml/main.cpp')
-rw-r--r-- | tools/qml/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp index 7e59810cd8..c899780bdd 100644 --- a/tools/qml/main.cpp +++ b/tools/qml/main.cpp @@ -398,7 +398,7 @@ int main(int argc, char *argv[]) //Handle main arguments QStringList argList = app->arguments(); - for (int i = 0; i < argList.count(); i++) { + for (int i = 1; i < argList.count(); i++) { const QString &arg = argList[i]; if (arg == QLatin1String("-quiet")) quietMode = true; |