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:
parent
e157fcba9e
commit
b049085a2c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue