Skip to content

Commit

Permalink
process command line arguments as filenames on windows
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10113 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Feb 5, 2009
1 parent 2ecc323 commit 302bb42
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/main.cpp
Expand Up @@ -74,6 +74,7 @@ typedef SInt32 SRefCon;

static const char * const ident_ = "$Id$";

#ifndef WIN32
/** print usage text
*/
void usage( std::string const & appName )
Expand All @@ -100,6 +101,7 @@ void usage( std::string const & appName )


} // usage()
#endif


/////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -356,6 +358,13 @@ int main( int argc, char *argv[] )
}
}
}
#else
for(int i=1; i<argc; i++) {
#ifdef QGISDEBUG
QgsDebugMsg( QString( "%1: %2" ).arg( i ).arg( argv[i] ) );
#endif
myFileList.append( QDir::convertSeparators( QFileInfo( QFile::decodeName( argv[i] ) ).absoluteFilePath() ) );
}
#endif //WIN32

/////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 302bb42

Please sign in to comment.