Skip to content
Permalink
Browse files

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

…or dialog

Fixes #28661
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Jan 7, 2020
1 parent 18e9766 commit 9a5855aa70ce3b372012c94d398f74eaba7b27d5
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/providers/ogr/qgsogrprovider.cpp
@@ -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" ) );

0 comments on commit 9a5855a

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