Skip to content
Permalink
Browse files

fix browser crash (fixes #10461)

  • Loading branch information
jef-n committed Jun 8, 2014
1 parent 87c4f80 commit 2f6e6ca060ebeb8e84bafaa0ce4c7ab875ddf2a1
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/attributetable/qgsattributetablemodel.cpp
@@ -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 ) );

0 comments on commit 2f6e6ca

Please sign in to comment.
You can’t perform that action at this time.