Skip to content

Commit

Permalink
fix browser crash (fixes #10461)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 8, 2014
1 parent 87c4f80 commit 2f6e6ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/attributetable/qgsattributetablemodel.cpp
Expand Up @@ -247,6 +247,8 @@ void QgsAttributeTableModel::loadAttributes()
for ( int idx = 0; idx < fields.count(); ++idx )
{
QgsEditorWidgetFactory* widgetFactory = QgsEditorWidgetRegistry::instance()->factory( layer()->editorWidgetV2( idx ) );
if ( !widgetFactory || !layer() )
continue;

mWidgetFactories.append( widgetFactory );
mWidgetConfigs.append( layer()->editorWidgetV2Config( idx ) );
Expand Down

0 comments on commit 2f6e6ca

Please sign in to comment.