Skip to content
Permalink
Browse files

be sure that layer exists

  • Loading branch information
3nids committed Apr 8, 2016
1 parent 54cc56f commit 31e6d2853a6bcfc8f0254ff1ce181ef5f9b25767
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/app/qgsvectorlayerproperties.cpp
@@ -1262,11 +1262,12 @@ void QgsVectorLayerProperties::updateSymbologyPage()

void QgsVectorLayerProperties::setPbnQueryBuilderEnabled()
{
pbnQueryBuilder->setEnabled( mLayer->dataProvider() &&
pbnQueryBuilder->setEnabled( mLayer &&
mLayer->dataProvider() &&
mLayer->dataProvider()->supportsSubsetString() &&
!mLayer->isEditable() );

if ( mLayer->isEditable() )
if ( mLayer && mLayer->isEditable() )
{
pbnQueryBuilder->setToolTip( tr( "Stop editing mode to enable this." ) );
}

0 comments on commit 31e6d28

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