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>
This commit is contained in:
Kevin Ottens 2015-03-05 11:46:38 +01:00 committed by Shawn Rutledge
parent e157fcba9e
commit b049085a2c
1 changed files with 1 additions and 1 deletions

View File

@ -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;