Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2049 from Hvitnov/fix12787
fix #12787 (Value Relation edit widget related crash)
  • Loading branch information
wonder-sk committed May 20, 2015
2 parents 7e69bd1 + df039ee commit c33b9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsvaluerelationconfigdlg.cpp
Expand Up @@ -32,7 +32,7 @@ QgsEditorWidgetConfig QgsValueRelationConfigDlg::config()
{
QgsEditorWidgetConfig cfg;

cfg.insert( "Layer", mLayerName->currentLayer()->id() );
cfg.insert( "Layer", mLayerName->currentLayer() ? mLayerName->currentLayer()->id() : QString() );
cfg.insert( "Key", mKeyColumn->currentField() );
cfg.insert( "Value", mValueColumn->currentField() );
cfg.insert( "AllowMulti", mAllowMulti->isChecked() );
Expand Down

0 comments on commit c33b9fa

Please sign in to comment.