mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
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:
parent
60d323f780
commit
b79b31077a
@ -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
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user