We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e433a10 commit e8f3dbdCopy full SHA for e8f3dbd
src/app/qgshandlebadlayers.cpp
@@ -177,7 +177,8 @@ QString QgsHandleBadLayers::filename( int row )
177
if ( type == QLatin1String( "vector" ) )
178
{
179
const QVariantMap parts = QgsProviderRegistry::instance()->decodeUri( provider, datasource );
180
- return parts.value( QLatin1String( "path" ) ).toString();
+ // if parts is empty then provider doesn't handle this method!
181
+ return parts.empty() ? datasource : parts.value( QLatin1String( "path" ) ).toString();
182
}
183
else
184
0 commit comments