Skip to content

Commit

Permalink
Add a safety guard
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Aug 28, 2017
1 parent e008f58 commit 19ce33f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -2055,6 +2055,9 @@ bool QgsAttributeForm::fieldIsEditable( const QgsVectorLayer &layer, int fieldIn

void QgsAttributeForm::updateIcon( QgsEditorWidgetWrapper *eww )
{
if ( !eww->widget() || !mIconMap[eww->widget()] )
return;

// no icon by default
mIconMap[eww->widget()]->hide();

Expand Down

0 comments on commit 19ce33f

Please sign in to comment.