Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix subform for relations are not shown
Followup 3fd3dae
Fix #14515
  • Loading branch information
m-kuhn committed Mar 17, 2016
1 parent 9e6866e commit adc811c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp
Expand Up @@ -66,7 +66,7 @@ void QgsRelationWidgetWrapper::initWidget( QWidget* editor )
do
{
if (( ctx->relation().name() == mRelation.name() && ctx->formMode() == QgsAttributeEditorContext::Embed )
|| ctx->relation().name() == nmrel.name() )
|| ( nmrel.isValid() && ctx->relation().name() == nmrel.name() ) )
{
w->setVisible( false );
break;
Expand Down

0 comments on commit adc811c

Please sign in to comment.