Skip to content
Permalink
Browse files

Fix debugging noise

  • Loading branch information
nyalldawson committed Jul 4, 2016
1 parent 0dc0f69 commit ea32e6ae9855313a3e83d1d1c7523f530baba3c9
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgsvectorlayer.cpp
@@ -1688,7 +1688,7 @@ bool QgsVectorLayer::readXml( const QDomNode& layer_node )

void QgsVectorLayer::setDataSource( const QString& dataSource, const QString& baseName, const QString& provider, bool loadDefaultStyleFlag )
{
QGis::GeometryType oldGeomType = geometryType();
QGis::GeometryType oldGeomType = mValid && mDataProvider ? geometryType() : QGis::UnknownGeometry;

mDataSource = dataSource;
mLayerName = capitaliseLayerName( baseName );
@@ -1736,14 +1736,14 @@ bool QgsVectorLayer::setDataProvider( QString const & provider )
// version big-time with an abnormal termination error
delete mDataProvider;
mDataProvider = ( QgsVectorDataProvider* )( QgsProviderRegistry::instance()->provider( provider, mDataSource ) );
connect( mDataProvider, SIGNAL( raiseError( QString ) ), this, SIGNAL( raiseError( QString ) ) );

if ( !mDataProvider )
{
QgsDebugMsg( " unable to get data provider" );
return false;
}

connect( mDataProvider, SIGNAL( raiseError( QString ) ), this, SIGNAL( raiseError( QString ) ) );

QgsDebugMsg( "Instantiated the data provider plugin" );

mValid = mDataProvider->isValid();

0 comments on commit ea32e6a

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