Skip to content

Commit

Permalink
Followup 1f8708f, fix src / scheme detection
Browse files Browse the repository at this point in the history
Thanks @nirvn for finding this bug
  • Loading branch information
elpaso committed Jan 30, 2019
1 parent f2d8bde commit 1686f0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" ) };

Expand Down

0 comments on commit 1686f0d

Please sign in to comment.