We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7e69bd1 + df039ee commit c33b9faCopy full SHA for c33b9fa
src/gui/editorwidgets/qgsvaluerelationconfigdlg.cpp
@@ -32,7 +32,7 @@ QgsEditorWidgetConfig QgsValueRelationConfigDlg::config()
32
{
33
QgsEditorWidgetConfig cfg;
34
35
- cfg.insert( "Layer", mLayerName->currentLayer()->id() );
+ cfg.insert( "Layer", mLayerName->currentLayer() ? mLayerName->currentLayer()->id() : QString() );
36
cfg.insert( "Key", mKeyColumn->currentField() );
37
cfg.insert( "Value", mValueColumn->currentField() );
38
cfg.insert( "AllowMulti", mAllowMulti->isChecked() );
0 commit comments