Followup 1f8708f, fix src / scheme detection

Thanks @nirvn for finding this bug
This commit is contained in:
Alessandro Pasotti 2019-01-30 08:12:33 +01:00
parent f2d8bdea4e
commit 1686f0d084

View File

@ -4668,8 +4668,7 @@ bool QgisApp::addVectorLayers( const QStringList &layerQStringList, const QStrin
}
QgsDebugMsgLevel( "completeBaseName: " + baseName, 2 );
const bool isVsiCurl { src.startsWith( QLatin1String( "/vsicurl", Qt::CaseInsensitive ) ) };
const bool isVsiCurl { src.startsWith( QLatin1String( "/vsicurl" ), Qt::CaseInsensitive ) };
const auto scheme { QUrl( src ).scheme() };
const bool isRemoteUrl { scheme.startsWith( QStringLiteral( "http" ) ) || scheme == QStringLiteral( "ftp" ) };