Skip to content
Permalink
Browse files

Followup 1f8708f, fix src / scheme detection

Thanks @nirvn for finding this bug
  • Loading branch information
elpaso committed Jan 30, 2019
1 parent f2d8bde commit 1686f0d084514acfa32758bd9992a5b15960b3e1
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/app/qgisapp.cpp
@@ -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" ) };

0 comments on commit 1686f0d

Please sign in to comment.
You can’t perform that action at this time.