Skip to content

Commit c6cba65

Browse files
committedJun 11, 2016
Don't double delete style configuration pages
Fixes a crash when switching between pages in the style configuration dock widget.
1 parent 3b998d2 commit c6cba65

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed
 

‎src/app/qgsmapstylingwidget.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void QgsMapStylingWidget::redo()
225225

226226
void QgsMapStylingWidget::updateCurrentWidgetLayer()
227227
{
228-
QgsDebugMsg( "UPDATE!!!" );
228+
QgsDebugMsgLevel( "UPDATE!!!", 4 );
229229
mBlockAutoApply = true;
230230

231231
QgsMapLayer* layer = mCurrentLayer;
@@ -251,10 +251,6 @@ void QgsMapStylingWidget::updateCurrentWidgetLayer()
251251
{
252252
mRasterStyleWidget = widget;
253253
}
254-
else
255-
{
256-
current->deleteLater();
257-
}
258254

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

1 commit comments

Comments
 (1)

NathanW2 commented on Jun 11, 2016

@NathanW2
Member

Thanks

Please sign in to comment.