Skip to content

Commit 31bb269

Browse files
committed
fix crash on identify with hidden attributes
1 parent 43dfb9c commit 31bb269

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/app/qgsidentifyresultsdialog.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,11 @@ void QgsIdentifyResultsDialog::addFeature( QgsVectorLayer *vlayer, const QgsFeat
408408

409409
attrItem->setData( 1, Qt::UserRole, value );
410410

411-
412-
const QString widgetType = vlayer->editorWidgetV2( i );
413-
414-
if ( widgetType == "Hidden" )
411+
if ( vlayer->editorWidgetV2( i ) == "Hidden" )
412+
{
415413
delete attrItem;
416-
continue;
414+
continue;
415+
}
417416

418417
value = representValue( vlayer, fields[i].name(), attrs[i] );
419418

0 commit comments

Comments
 (0)