Skip to content

Commit b79b310

Browse files
author
jef
committed
process command line arguments as filenames on windows
git-svn-id: http://svn.osgeo.org/qgis/trunk@10113 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 60d323f commit b79b310

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/app/main.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ typedef SInt32 SRefCon;
7474

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

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

101102

102103
} // usage()
104+
#endif
103105

104106

105107
/////////////////////////////////////////////////////////////////
@@ -356,6 +358,13 @@ int main( int argc, char *argv[] )
356358
}
357359
}
358360
}
361+
#else
362+
for(int i=1; i<argc; i++) {
363+
#ifdef QGISDEBUG
364+
QgsDebugMsg( QString( "%1: %2" ).arg( i ).arg( argv[i] ) );
365+
#endif
366+
myFileList.append( QDir::convertSeparators( QFileInfo( QFile::decodeName( argv[i] ) ).absoluteFilePath() ) );
367+
}
359368
#endif //WIN32
360369

361370
/////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)