process command line arguments as filenames on windows

git-svn-id: http://svn.osgeo.org/qgis/trunk@10113 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2009-02-05 20:15:04 +00:00
parent 60d323f780
commit b79b31077a

View File

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