Skip to content
Permalink
Browse files

Fix crash when selecting geometryless layer and style widget is open

  • Loading branch information
nyalldawson committed May 10, 2016
1 parent 22acf3b commit 5306f552c9a325df43865289d1dc7bd3cd98d42e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsmapstylingwidget.cpp
@@ -98,9 +98,9 @@ QgsMapStylingWidget::QgsMapStylingWidget( QgsMapCanvas* canvas, QWidget *parent

void QgsMapStylingWidget::setLayer( QgsMapLayer *layer )
{
if ( !layer )
if ( !layer || !layer->isSpatial() )
{
mLayerTitleLabel->setText( "" );
mLayerTitleLabel->clear();
mStackedWidget->setCurrentIndex( mNotSupportedPage );
return;
}

1 comment on commit 5306f55

@NathanW2

This comment has been minimized.

Copy link
Member

@NathanW2 NathanW2 commented on 5306f55 May 10, 2016

Thanks!

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