Skip to content

Commit

Permalink
Fix DD form label hidden in tabs
Browse files Browse the repository at this point in the history
Fixes #43103
  • Loading branch information
elpaso authored and nyalldawson committed May 30, 2021
1 parent bbb74b8 commit 7a9c6b4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -2132,7 +2132,7 @@ QgsAttributeForm::WidgetInfo QgsAttributeForm::createWidgetFromDef( const QgsAtt
}
}

if ( widgetInfo.labelText.isNull() )
if ( widgetInfo.labelText.isNull() || ! widgetInfo.showLabel )
{
gbLayout->addWidget( widgetInfo.widget, row, column, 1, 2 );
column += 2;
Expand Down Expand Up @@ -2198,6 +2198,7 @@ QgsAttributeForm::WidgetInfo QgsAttributeForm::createWidgetFromDef( const QgsAtt

newWidgetInfo.labelText = QString();
newWidgetInfo.labelOnTop = true;
newWidgetInfo.showLabel = widgetDef->showLabel();
break;
}

Expand Down Expand Up @@ -2241,8 +2242,6 @@ QgsAttributeForm::WidgetInfo QgsAttributeForm::createWidgetFromDef( const QgsAtt
break;
}

newWidgetInfo.showLabel = widgetDef->showLabel();

return newWidgetInfo;
}

Expand Down

0 comments on commit 7a9c6b4

Please sign in to comment.