From 39cd81b309517d31497e1a2867c5d9359d5763c3 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Thu, 30 Mar 2017 15:01:57 +0200 Subject: [PATCH] Hide embedded form in relation reference by default --- src/gui/editorwidgets/qgsrelationreferenceconfigdlg.cpp | 2 +- src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/editorwidgets/qgsrelationreferenceconfigdlg.cpp b/src/gui/editorwidgets/qgsrelationreferenceconfigdlg.cpp index 2976b1fff34f..a301ec9ff27b 100644 --- a/src/gui/editorwidgets/qgsrelationreferenceconfigdlg.cpp +++ b/src/gui/editorwidgets/qgsrelationreferenceconfigdlg.cpp @@ -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" ) ) ) { diff --git a/src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.cpp b/src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.cpp index 3ef069b1e8bf..924b507c2c29 100644 --- a/src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.cpp +++ b/src/gui/editorwidgets/qgsrelationreferencewidgetwrapper.cpp @@ -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();