Skip to content

Commit

Permalink
[BUGFIX] Fix ESRI shapefile format listed twice in vector file select…
Browse files Browse the repository at this point in the history
…or dialog

Fixes #28661
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Jan 8, 2020
1 parent 18e9766 commit 9a5855a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -2933,7 +2933,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" ) );
Expand Down

0 comments on commit 9a5855a

Please sign in to comment.