Skip to content

Commit

Permalink
Fix debugging noise
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 4, 2016
1 parent 0dc0f69 commit ea32e6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -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 );
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit ea32e6a

Please sign in to comment.