Skip to content
Permalink
Browse files
fix 98c89cc
  • Loading branch information
jef-n committed Apr 30, 2017
1 parent bbdc77d commit 21f81fb2a272301c3353172bb1ad116769e508d3
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/app/main.cpp
  2. +1 −1 tests/bench/main.cpp
@@ -734,7 +734,7 @@ int main( int argc, char *argv[] )
for ( int i = 0; i < args.size(); i++ )
{
QString arg = QDir::toNativeSeparators( QFileInfo( args[i] ).absoluteFilePath() );
if ( arg.endsWith( QLatin1String( ".qgs", Qt::CaseInsensitive ) ) )
if ( arg.endsWith( QLatin1String( ".qgs" ), Qt::CaseInsensitive ) )
{
sProjectFileName = arg;
break;
@@ -1116,7 +1116,7 @@ int main( int argc, char *argv[] )
QgsDebugMsg( QString( "Trying to load file : %1" ).arg( ( *myIterator ) ) );
QString myLayerName = *myIterator;
// don't load anything with a .qgs extension - these are project files
if ( !myLayerName.endsWith( QLatin1String( ".qgs", Qt::CaseInsensitive ) ) )
if ( !myLayerName.endsWith( QLatin1String( ".qgs" ), Qt::CaseInsensitive ) )
{
qgis->openLayer( myLayerName );
}
@@ -526,7 +526,7 @@ int main( int argc, char *argv[] )
QgsDebugMsg( QString( "Trying to load file : %1" ).arg( ( *myIterator ) ) );
QString myLayerName = *myIterator;
// don't load anything with a .qgs extension - these are project files
if ( !myLayerName.endsWith( QLatin1String( ".qgs", Qt::CaseInsensitive ) ) )
if ( !myLayerName.endsWith( QLatin1String( ".qgs" ), Qt::CaseInsensitive ) )
{
fprintf( stderr, "Data files not yet supported\n" );
return 1;

0 comments on commit 21f81fb

Please sign in to comment.