Skip to content

Commit adc811c

Browse files
committedMar 17, 2016
Fix subform for relations are not shown
Followup 3fd3dae Fix #14515
1 parent 9e6866e commit adc811c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void QgsRelationWidgetWrapper::initWidget( QWidget* editor )
6666
do
6767
{
6868
if (( ctx->relation().name() == mRelation.name() && ctx->formMode() == QgsAttributeEditorContext::Embed )
69-
|| ctx->relation().name() == nmrel.name() )
69+
|| ( nmrel.isValid() && ctx->relation().name() == nmrel.name() ) )
7070
{
7171
w->setVisible( false );
7272
break;

0 commit comments

Comments
 (0)
Please sign in to comment.