Fix command line argument parsing.

This commit is contained in:
Florian Geyer 2012-04-28 19:30:35 +02:00 committed by Felix Geyer
parent ab32452920
commit 64170a16ab

View File

@ -36,7 +36,7 @@ int main(int argc, char **argv)
QString password; QString password;
const QStringList args = app.arguments(); const QStringList args = app.arguments();
for (int i = 0; i < args.size(); i++) { for (int i = 1; i < args.size(); i++) {
if (args[i] == "--password" && args.size() > (i + 1)) { if (args[i] == "--password" && args.size() > (i + 1)) {
password = args[i + 1]; password = args[i + 1];
i++; i++;