File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -803,10 +803,11 @@ QString QgsMapLayer::baseURI( PropertyType type ) const
803
803
// as in these cases URI may contain layer name and/or additional
804
804
// information. This also strips prefix in case if VSIFILE mechanism
805
805
// is used
806
- if ( providerType () == QLatin1String ( " ogr" ) || providerType () == QLatin1String ( " delimitedtext" ) ||
807
- providerType () == QLatin1String ( " spatialite" ) )
806
+ QString providerType = dataProvider ()->name ();
807
+ if ( providerType == QLatin1String ( " ogr" ) || providerType == QLatin1String ( " delimitedtext" ) ||
808
+ providerType == QLatin1String ( " spatialite" ) )
808
809
{
809
- QVariantMap components = QgsProviderRegistry::instance ()->decodeUri ( providerType () , myURI );
810
+ QVariantMap components = QgsProviderRegistry::instance ()->decodeUri ( providerType, myURI );
810
811
myURI = components[" path" ].toString ();
811
812
}
812
813
You can’t perform that action at this time.
0 commit comments