Skip to content

Commit

Permalink
Merge pull request #30945 from qgis/backport-30930-to-release-3_8
Browse files Browse the repository at this point in the history
[Backport release-3_8] Hide browse button on attachment widget in attribute table
  • Loading branch information
m-kuhn committed Aug 12, 2019
2 parents 05fea26 + fd0e42a commit 7077c3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/editorwidgets/qgsexternalresourcewidgetwrapper.cpp
Expand Up @@ -175,7 +175,8 @@ void QgsExternalResourceWidgetWrapper::initWidget( QWidget *editor )
}
if ( cfg.contains( QStringLiteral( "FileWidgetButton" ) ) )
{
mQgsWidget->fileWidget()->setFileWidgetButtonVisible( cfg.value( QStringLiteral( "FileWidgetButton" ) ).toBool() );
// Prevent from showing the button in the attribute table, see https://github.com/qgis/QGIS/issues/26948
mQgsWidget->fileWidget()->setFileWidgetButtonVisible( cfg.value( QStringLiteral( "FileWidgetButton" ) ).toBool() && context().formMode() != QgsAttributeEditorContext::Popup );
}
if ( cfg.contains( QStringLiteral( "DocumentViewer" ) ) )
{
Expand Down

0 comments on commit 7077c3a

Please sign in to comment.