Skip to content

Commit

Permalink
Add cheat to ensure that tiff items are always shown as single layer
Browse files Browse the repository at this point in the history
items in browser rather than containers

This isn't strictly true, but this is a cheat to ensure that
the behaviour isn't changed by a semi-related fix
  • Loading branch information
nyalldawson committed Apr 4, 2023
1 parent 01f8ac8 commit 056ff20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/qgsgdalutils.cpp
Expand Up @@ -668,7 +668,13 @@ QStringList QgsGdalUtils::multiLayerFileExtensions()
const QStringList splitExtensions = driverExtensions.split( ' ', Qt::SkipEmptyParts );

for ( const QString &ext : splitExtensions )
{
// maintain older behavior -- don't always expose tiff files as containers
if ( ext == QLatin1String( "tif" ) || ext == QLatin1String( "tiff" ) )
continue;

extensions.insert( ext );
}
}

SUPPORTED_DB_LAYERS_EXTENSIONS = QStringList( extensions.constBegin(), extensions.constEnd() );
Expand Down

0 comments on commit 056ff20

Please sign in to comment.