Skip to content
Permalink
Browse files

remove some debug noise

git-svn-id: http://svn.osgeo.org/qgis/trunk@12384 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 9, 2009
1 parent 5527f98 commit ddde8f5b369b74dd4fd1f4349425b5ac5a5f6e98
Showing with 6 additions and 6 deletions.
  1. +2 −2 src/core/qgsmaplayer.cpp
  2. +4 −4 src/plugins/grass/qgsgrassedit.cpp
@@ -111,7 +111,7 @@ void QgsMapLayer::setLayerName( const QString & _newVal )
/** Read property of QString layerName. */
QString const & QgsMapLayer::name() const
{
QgsDebugMsg( "returning name '" + mLayerName + "'" );
QgsDebugMsgLevel( "returning name '" + mLayerName + "'", 3 );
return mLayerName;
}

@@ -376,7 +376,7 @@ QString QgsMapLayer::lastError()

void QgsMapLayer::connectNotify( const char * signal )
{
QgsDebugMsg( "QgsMapLayer connected to " + QString( signal ) );
QgsDebugMsgLevel( "QgsMapLayer connected to " + QString( signal ), 3 );
} // QgsMapLayer::connectNotify


@@ -184,22 +184,22 @@ bool QgsGrassEdit::isEditable( QgsMapLayer *layer )
{
if ( !layer ) return false;

QgsDebugMsg( "layer name: " + layer->name() );
QgsDebugMsgLevel( "layer name: " + layer->name(), 3 );

if ( layer->type() != QgsMapLayer::VectorLayer )
{
QgsDebugMsg( "The selected layer is not vector." );
QgsDebugMsgLevel( "The selected layer is not vector.", 3 );
return false;
}

//TODO dynamic_cast ?
QgsVectorLayer *vector = ( QgsVectorLayer* )layer;

QgsDebugMsg( "Vector layer type: " + vector->providerType() );
QgsDebugMsgLevel( "Vector layer type: " + vector->providerType(), 3 );

if ( vector->providerType() != "grass" )
{
QgsDebugMsg( "The selected layer is not GRASS." );
QgsDebugMsgLevel( "The selected layer is not GRASS.", 3 );
return false;
}

0 comments on commit ddde8f5

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