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 authored and nyalldawson committed Oct 18, 2023
1 parent 7ae00d0 commit 5ea816a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/symbology/qgsgraduatedsymbolrendererwidget.cpp
Expand Up @@ -914,9 +914,10 @@ void QgsGraduatedSymbolRendererWidget::clearParameterWidgets()
for ( QLayoutItem *item : QList<QLayoutItem *>( {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 5ea816a

Please sign in to comment.