Skip to content
Permalink
Browse files

Case insensitive file extension check

  • Loading branch information
m-kuhn committed Oct 31, 2018
1 parent 85f9225 commit 1195b043c9ac61ff34da1fdbbe1b267f5041bc42
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayerexporter.cpp
@@ -127,7 +127,7 @@ QgsVectorLayerExporter::QgsVectorLayerExporter( const QString &uri,

// HACK sorry
const QString path = QgsProviderRegistry::instance()->decodeUri( QStringLiteral( "ogr" ), uri ).value( QStringLiteral( "path" ) ).toString();
if ( sinkFlags.testFlag( QgsFeatureSink::SinkFlag::RegeneratePrimaryKey ) && path.endsWith( QLatin1String( ".gpkg" ) ) )
if ( sinkFlags.testFlag( QgsFeatureSink::SinkFlag::RegeneratePrimaryKey ) && path.endsWith( QLatin1String( ".gpkg" ), Qt::CaseInsensitive ) )
{
QString fidName = options.value( QStringLiteral( "FID" ), QStringLiteral( "FID" ) ).toString();
int fidIdx = vectorProvider->fields().lookupField( fidName );

0 comments on commit 1195b04

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