options.cpp
changeset 783 85dec6a8c12c
parent 474 d9add21ee9d3
     1.1 --- a/options.cpp	Wed Apr 25 16:02:54 2007 +0000
     1.2 +++ b/options.cpp	Mon Jul 27 12:53:17 2009 +0000
     1.3 @@ -47,13 +47,7 @@
     1.4  
     1.5  int Options::parse()
     1.6  {
     1.7 -	QStringList arglist;
     1.8 -	int i=0;
     1.9 -	while ( i < qApp->argc())
    1.10 -	{	
    1.11 -		arglist.append (qApp->argv()[i]);
    1.12 -		i++;
    1.13 -	}
    1.14 +	QStringList arglist=qApp->arguments();
    1.15  
    1.16  	// Get program name
    1.17  	progname=arglist.first();
    1.18 @@ -61,6 +55,7 @@
    1.19  
    1.20  	// Work through rest of options
    1.21  	bool isFile;
    1.22 +	int i=0;
    1.23  	for (i=0; i< arglist.size(); ++i)
    1.24  	{
    1.25  		isFile=true;