Skip to content

Commit

Permalink
Fixes qgis#54549 : correctly delete graduated layout widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 committed Oct 16, 2023
1 parent 99d0f8a commit 3dad620
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/symbology/qgsgraduatedsymbolrendererwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -925,9 +925,10 @@ void QgsGraduatedSymbolRendererWidget::clearParameterWidgets()
for ( QLayoutItem *item : {row.labelItem, row.fieldItem} )
if ( item )
{
if ( item->widget() )
item->widget()->deleteLater();
QWidget *widget = item->widget();
delete item;
if ( widget )
delete widget;
}
}
mParameterWidgetWrappers.clear();
Expand Down

0 comments on commit 3dad620

Please sign in to comment.