Skip to content

Commit

Permalink
fix #12787 (Value Relation edit widget related crash)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hvitnov committed May 20, 2015
1 parent 028467e commit df039ee
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 df039ee

Please sign in to comment.