Skip to content
Permalink
Browse files
process command line arguments as filenames on windows
git-svn-id: http://svn.osgeo.org/qgis/branches/Version-1_0@10112 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Feb 5, 2009
1 parent 1d527ce commit 49f199fec13e26d99dc86de587cf2f25974cf793
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/app/main.cpp
@@ -74,6 +74,7 @@ typedef SInt32 SRefCon;

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

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


} // usage()
#endif


/////////////////////////////////////////////////////////////////
@@ -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

/////////////////////////////////////////////////////////////////////

0 comments on commit 49f199f

Please sign in to comment.