Skip to content

Commit

Permalink
Hide embedded form in relation reference
Browse files Browse the repository at this point in the history
by default
  • Loading branch information
m-kuhn committed Mar 30, 2017
1 parent aa4a784 commit 39cd81b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsrelationreferenceconfigdlg.cpp
Expand Up @@ -58,7 +58,7 @@ void QgsRelationReferenceConfigDlg::setConfig( const QVariantMap &config )
{
mCbxAllowNull->setChecked( config.value( QStringLiteral( "AllowNULL" ), false ).toBool() );
mCbxOrderByValue->setChecked( config.value( QStringLiteral( "OrderByValue" ), false ).toBool() );
mCbxShowForm->setChecked( config.value( QStringLiteral( "ShowForm" ), true ).toBool() );
mCbxShowForm->setChecked( config.value( QStringLiteral( "ShowForm" ), false ).toBool() );

if ( config.contains( QStringLiteral( "Relation" ) ) )
{
Expand Down
Expand Up @@ -46,7 +46,7 @@ void QgsRelationReferenceWidgetWrapper::initWidget( QWidget *editor )

mWidget->setEditorContext( context(), mCanvas, mMessageBar );

bool showForm = config( QStringLiteral( "ShowForm" ), true ).toBool();
bool showForm = config( QStringLiteral( "ShowForm" ), false ).toBool();
bool mapIdent = config( QStringLiteral( "MapIdentification" ), false ).toBool();
bool readOnlyWidget = config( QStringLiteral( "ReadOnly" ), false ).toBool();
bool orderByValue = config( QStringLiteral( "OrderByValue" ), false ).toBool();
Expand Down

0 comments on commit 39cd81b

Please sign in to comment.