Skip to content

Commit 71590bb

Browse files
committedOct 31, 2018
Case insensitive file extension check
1 parent a4d4c55 commit 71590bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsvectorlayerexporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ QgsVectorLayerExporter::QgsVectorLayerExporter( const QString &uri,
127127

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

0 commit comments

Comments
 (0)
Please sign in to comment.