Skip to content
Permalink
Browse files
Hide embedded form in relation reference
by default
  • Loading branch information
m-kuhn committed Mar 30, 2017
1 parent aa4a784 commit 39cd81b309517d31497e1a2867c5d9359d5763c3
@@ -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" ) ) )
{
@@ -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();

0 comments on commit 39cd81b

Please sign in to comment.