Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 c6cba65
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/app/qgsmapstylingwidget.cpp
Expand Up @@ -225,7 +225,7 @@ void QgsMapStylingWidget::redo()

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

QgsMapLayer* layer = mCurrentLayer;
Expand All @@ -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.
Expand Down Expand Up @@ -323,7 +319,7 @@ void QgsMapStylingWidget::updateCurrentWidgetLayer()
mWidgetArea->setWidget( transwidget );
break;
}
case 2: // Transparency
case 2: // Histogram
{
if ( mRasterStyleWidget )
{
Expand Down

1 comment on commit c6cba65

@NathanW2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Please sign in to comment.