Skip to content
Permalink
Browse files

[Bugfix] Return false from QgsVectorLayer::setDataProvider if provide…

…r is not valid
  • Loading branch information
manisandro committed Mar 15, 2019
1 parent 0996c93 commit 0360b457431c461ec0c846fd18d0e21aaae0862c
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/qgsvectorlayer.cpp
@@ -1594,6 +1594,7 @@ bool QgsVectorLayer::setDataProvider( QString const &provider, const QgsDataProv
if ( !mValid )
{
QgsDebugMsgLevel( QStringLiteral( "Invalid provider plugin %1" ).arg( QString( mDataSource.toUtf8() ) ), 2 );
return false;
}

if ( mDataProvider->capabilities() & QgsVectorDataProvider::ReadLayerMetadata )

0 comments on commit 0360b45

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