Add cheat to ensure that tiff items are always shown as single layer

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
This commit is contained in:
Nyall Dawson 2023-04-03 10:10:13 +10:00
parent 01f8ac83f8
commit 056ff20591

View File

@ -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() );