Skip to content
Permalink
Browse files

[BUGFIX] Fix ESRI shapefile format listed twice in vector file select…

…or dialog
  • Loading branch information
github-actions authored and nyalldawson committed Jan 8, 2020
1 parent 5f3ee10 commit 7d4d64a1106ebb24bf2ce381d3fe8be1351e3577
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/providers/ogr/qgsogrprovider.cpp
@@ -2927,7 +2927,7 @@ QString createFilters( const QString &type )
{
sDatabaseDrivers += QObject::tr( "ESRI ArcSDE" ) + ",SDE;";
}
else if ( driverName.startsWith( QLatin1String( "ESRI" ) ) )
else if ( driverName.startsWith( QLatin1String( "ESRI Shapefile" ) ) )
{
QString exts = GDALGetMetadataItem( driver, GDAL_DMD_EXTENSIONS, "" );
sFileFilters += createFileFilter_( QObject::tr( "ESRI Shapefiles" ), exts.contains( "shz" ) ? QStringLiteral( "*.shp *.shz *.shp.zip" ) : QStringLiteral( "*.shp" ) );

0 comments on commit 7d4d64a

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