Skip to content
Permalink
Browse files

use comma as delimiter for GDAL_SKIP env variable as some vector drivers

have space in their name
  • Loading branch information
alexbruy committed Aug 26, 2020
1 parent 744380b commit 5b86753823f5c997c54f7c7b8ca9cc47a4bf5b87
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgsapplication.cpp
@@ -1675,7 +1675,7 @@ void QgsApplication::setSkippedGdalDrivers( const QStringList &skippedGdalDriver
*sDeferredSkippedGdalDrivers() = deferredSkippedGdalDrivers;

QgsSettings settings;
settings.setValue( QStringLiteral( "gdal/skipList" ), skippedGdalDrivers.join( QStringLiteral( " " ) ) );
settings.setValue( QStringLiteral( "gdal/skipList" ), skippedGdalDrivers.join( QStringLiteral( "," ) ) );

applyGdalSkippedDrivers();
}
@@ -1687,7 +1687,7 @@ void QgsApplication::registerGdalDriversFromSettings()
QStringList myList;
if ( !joinedList.isEmpty() )
{
myList = joinedList.split( ' ' );
myList = joinedList.split( QStringLiteral( "," ) );
}
*sGdalSkipList() = myList;
applyGdalSkippedDrivers();
@@ -1707,7 +1707,7 @@ void QgsApplication::applyGdalSkippedDrivers()
if ( !sDeferredSkippedGdalDrivers()->contains( driverName ) )
realDisabledDriverList << driverName;
}
QString myDriverList = realDisabledDriverList.join( ' ' );
QString myDriverList = realDisabledDriverList.join( QStringLiteral( "," ) );
QgsDebugMsgLevel( QStringLiteral( "Gdal Skipped driver list set to:" ), 2 );
QgsDebugMsgLevel( myDriverList, 2 );
CPLSetConfigOption( "GDAL_SKIP", myDriverList.toUtf8() );

0 comments on commit 5b86753

Please sign in to comment.
You can’t perform that action at this time.