Skip to content
Permalink
Browse files

Delete old renderer widgets

  • Loading branch information
mhugent committed Jul 1, 2012
1 parent 3deef8b commit 7a8b9b7cfdb7bb3bb6f9a56a156610419ab5c2d8
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/qgsrasterlayerproperties.cpp
@@ -380,7 +380,9 @@ void QgsRasterLayerProperties::setRendererWidget( const QString& rendererName )
if ( rendererEntry.widgetCreateFunction ) //single band color data renderer e.g. has no widget
{
mRendererWidget = ( *rendererEntry.widgetCreateFunction )( mRasterLayer );
QWidget* oldWidget = mRendererStackedWidget->currentWidget();
mRendererStackedWidget->addWidget( mRendererWidget );
delete oldWidget;
}
}
}

0 comments on commit 7a8b9b7

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