options.cpp
changeset 714 3368b54c7946
parent 474 d9add21ee9d3
     1.1 --- a/options.cpp	Thu Jul 03 14:42:18 2008 +0000
     1.2 +++ b/options.cpp	Fri Jul 11 12:36:38 2008 +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;