Fix generation of point cloud file filter

This commit is contained in:
Nyall Dawson 2020-11-05 11:57:51 +10:00
parent 1225eb498a
commit 9f53f708bf

View File

@ -297,6 +297,8 @@ void QgsProviderRegistry::init()
if ( !filePointCloudFilters.isEmpty() )
{
QgsDebugMsgLevel( "point cloud filters: " + filePointCloudFilters, 2 );
if ( !mPointCloudFileFilters.isEmpty() && !mPointCloudFileFilters.endsWith( QLatin1String( ";;" ) ) )
mPointCloudFileFilters += QStringLiteral( ";;" );
mPointCloudFileFilters += filePointCloudFilters;
QgsDebugMsgLevel( QStringLiteral( "Checking %1: ...loaded OK (%2 file filters)" ).arg( key ).arg( filePointCloudFilters.split( ";;" ).count() ), 2 );
}