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 28, 2023
1 parent b97cddb commit 8a5d44c
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 @@ -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 8a5d44c

Please sign in to comment.