Skip to content

Commit

Permalink
Fixes #54549 : correctly delete graduated layout widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 committed Oct 17, 2023
1 parent 13a9c74 commit d853487
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 d853487

Please sign in to comment.