Skip to content

Commit

Permalink
Hide browse button on attachment widget in attribute table
Browse files Browse the repository at this point in the history
References #26948
  • Loading branch information
m-kuhn committed Jul 25, 2019
1 parent 7e32516 commit fd0e42a
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 fd0e42a

Please sign in to comment.