Skip to content
Permalink
Browse files

Don't double delete style configuration pages

Fixes a crash when switching between pages in the style configuration
dock widget.
  • Loading branch information
m-kuhn committed Jun 11, 2016
1 parent 3b998d2 commit c6cba65a5657478aa1191830934c3d42e083718c
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/app/qgsmapstylingwidget.cpp
@@ -225,7 +225,7 @@ void QgsMapStylingWidget::redo()

void QgsMapStylingWidget::updateCurrentWidgetLayer()
{
QgsDebugMsg( "UPDATE!!!" );
QgsDebugMsgLevel( "UPDATE!!!", 4 );
mBlockAutoApply = true;

QgsMapLayer* layer = mCurrentLayer;
@@ -251,10 +251,6 @@ void QgsMapStylingWidget::updateCurrentWidgetLayer()
{
mRasterStyleWidget = widget;
}
else
{
current->deleteLater();
}

// Create the user page widget if we are on one of those pages
// TODO Make all widgets use this method.
@@ -323,7 +319,7 @@ void QgsMapStylingWidget::updateCurrentWidgetLayer()
mWidgetArea->setWidget( transwidget );
break;
}
case 2: // Transparency
case 2: // Histogram
{
if ( mRasterStyleWidget )
{

1 comment on commit c6cba65

@NathanW2

This comment has been minimized.

Copy link
Member

@NathanW2 NathanW2 commented on c6cba65 Jun 11, 2016

Thanks

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