Skip to content

Commit 19ce33f

Browse files
committed
Add a safety guard
1 parent e008f58 commit 19ce33f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/gui/qgsattributeform.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -2055,6 +2055,9 @@ bool QgsAttributeForm::fieldIsEditable( const QgsVectorLayer &layer, int fieldIn
20552055

20562056
void QgsAttributeForm::updateIcon( QgsEditorWidgetWrapper *eww )
20572057
{
2058+
if ( !eww->widget() || !mIconMap[eww->widget()] )
2059+
return;
2060+
20582061
// no icon by default
20592062
mIconMap[eww->widget()]->hide();
20602063

0 commit comments

Comments
 (0)