[QGIS Commit] r10113 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Feb 5 15:15:04 EST 2009


Author: jef
Date: 2009-02-05 15:15:04 -0500 (Thu, 05 Feb 2009)
New Revision: 10113

Modified:
   trunk/qgis/src/app/main.cpp
Log:
process command line arguments as filenames on windows

Modified: trunk/qgis/src/app/main.cpp
===================================================================
--- trunk/qgis/src/app/main.cpp	2009-02-05 20:12:11 UTC (rev 10112)
+++ trunk/qgis/src/app/main.cpp	2009-02-05 20:15:04 UTC (rev 10113)
@@ -74,6 +74,7 @@
 
 static const char * const ident_ = "$Id$";
 
+#ifndef WIN32
 /** print usage text
  */
 void usage( std::string const & appName )
@@ -100,6 +101,7 @@
 
 
 } // usage()
+#endif
 
 
 /////////////////////////////////////////////////////////////////
@@ -356,6 +358,13 @@
       }
     }
   }
+#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
 
   /////////////////////////////////////////////////////////////////////



More information about the QGIS-commit mailing list