diff -r b8bb7beec278 -r 3368b54c7946 options.cpp --- a/options.cpp Thu Jul 03 14:42:18 2008 +0000 +++ b/options.cpp Fri Jul 11 12:36:38 2008 +0000 @@ -47,13 +47,7 @@ int Options::parse() { - QStringList arglist; - int i=0; - while ( i < qApp->argc()) - { - arglist.append (qApp->argv()[i]); - i++; - } + QStringList arglist=qApp->arguments(); // Get program name progname=arglist.first(); @@ -61,6 +55,7 @@ // Work through rest of options bool isFile; + int i=0; for (i=0; i< arglist.size(); ++i) { isFile=true;