diff --git a/python/core/auto_generated/qgsattributeeditorelement.sip.in b/python/core/auto_generated/qgsattributeeditorelement.sip.in index 803312405ec..3dd4cebe633 100644 --- a/python/core/auto_generated/qgsattributeeditorelement.sip.in +++ b/python/core/auto_generated/qgsattributeeditorelement.sip.in @@ -435,7 +435,7 @@ Determines the force suppress form popup status. void setForceSuppressFormPopup( bool forceSuppressFormPopup ); %Docstring Sets force suppress form popup status to ``forceSuppressFormPopup``. -This flag will override the layer and general settings regarding the automatic +This flag is to override the layer and general settings regarding the automatic opening of the attribute form dialog when digitizing is completed. .. versionadded:: 3.16 diff --git a/python/gui/auto_generated/editorwidgets/qgsrelationwidgetwrapper.sip.in b/python/gui/auto_generated/editorwidgets/qgsrelationwidgetwrapper.sip.in index 7248ef517f4..f27c41bd1c1 100644 --- a/python/gui/auto_generated/editorwidgets/qgsrelationwidgetwrapper.sip.in +++ b/python/gui/auto_generated/editorwidgets/qgsrelationwidgetwrapper.sip.in @@ -115,14 +115,15 @@ Returns the buttons which are shown bool forceSuppressFormPopup() const; %Docstring -Determines the force suppress form popup status. +Determines the force suppress form popup status that is configured for this widget .. versionadded:: 3.16 %End void setForceSuppressFormPopup( bool forceSuppressFormPopup ); %Docstring -Sets force suppress form popup status to ``forceSuppressFormPopup``. +Sets force suppress form popup status to ``forceSuppressFormPopup`` for this widget +and for the vectorLayerTools (if true). This flag will override the layer and general settings regarding the automatic opening of the attribute form dialog when digitizing is completed. diff --git a/python/gui/auto_generated/qgsrelationeditorwidget.sip.in b/python/gui/auto_generated/qgsrelationeditorwidget.sip.in index a082d32cd46..dee01fae815 100644 --- a/python/gui/auto_generated/qgsrelationeditorwidget.sip.in +++ b/python/gui/auto_generated/qgsrelationeditorwidget.sip.in @@ -185,16 +185,15 @@ Returns the buttons which are shown bool forceSuppressFormPopup() const; %Docstring -Determines the force suppress form popup status. +Determines the force suppress form popup status that is configured for this widget .. versionadded:: 3.16 %End void setForceSuppressFormPopup( bool forceSuppressFormPopup ); %Docstring -Sets force suppress form popup status to ``forceSuppressFormPopup``. -This flag will override the layer and general settings regarding the automatic -opening of the attribute form dialog when digitizing is completed. +Sets force suppress form popup status with ``forceSuppressFormPopup`` +configured for this widget .. versionadded:: 3.16 %End diff --git a/src/core/qgsattributeeditorelement.h b/src/core/qgsattributeeditorelement.h index edf5cf71024..ede5cc9cb7b 100644 --- a/src/core/qgsattributeeditorelement.h +++ b/src/core/qgsattributeeditorelement.h @@ -475,7 +475,7 @@ class CORE_EXPORT QgsAttributeEditorRelation : public QgsAttributeEditorElement /** * Sets force suppress form popup status to \a forceSuppressFormPopup. - * This flag will override the layer and general settings regarding the automatic + * This flag is to override the layer and general settings regarding the automatic * opening of the attribute form dialog when digitizing is completed. * \since QGIS 3.16 */ diff --git a/src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp b/src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp index f40c898c13c..11965b09904 100644 --- a/src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp +++ b/src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp @@ -233,7 +233,11 @@ void QgsRelationWidgetWrapper::setForceSuppressFormPopup( bool forceSuppressForm if ( mWidget ) { mWidget->setForceSuppressFormPopup( forceSuppressFormPopup ); - const_cast( mWidget->editorContext().vectorLayerTools() )->setForceSuppressFormPopup( forceSuppressFormPopup ); + //it's set to true if one widget is configured like this but the setting is done generally (influencing all widgets). + if ( forceSuppressFormPopup ) + { + const_cast( mWidget->editorContext().vectorLayerTools() )->setForceSuppressFormPopup( true ); + } } } diff --git a/src/gui/editorwidgets/qgsrelationwidgetwrapper.h b/src/gui/editorwidgets/qgsrelationwidgetwrapper.h index 255ff549685..63a9fe4d2f5 100644 --- a/src/gui/editorwidgets/qgsrelationwidgetwrapper.h +++ b/src/gui/editorwidgets/qgsrelationwidgetwrapper.h @@ -107,13 +107,14 @@ class GUI_EXPORT QgsRelationWidgetWrapper : public QgsWidgetWrapper QgsAttributeEditorRelation::Buttons visibleButtons() const; /** - * Determines the force suppress form popup status. + * Determines the force suppress form popup status that is configured for this widget * \since QGIS 3.16 */ bool forceSuppressFormPopup() const; /** - * Sets force suppress form popup status to \a forceSuppressFormPopup. + * Sets force suppress form popup status to \a forceSuppressFormPopup for this widget + * and for the vectorLayerTools (if true). * This flag will override the layer and general settings regarding the automatic * opening of the attribute form dialog when digitizing is completed. * \since QGIS 3.16 diff --git a/src/gui/qgsrelationeditorwidget.h b/src/gui/qgsrelationeditorwidget.h index ba2cb52641d..d913db51d94 100644 --- a/src/gui/qgsrelationeditorwidget.h +++ b/src/gui/qgsrelationeditorwidget.h @@ -222,15 +222,14 @@ class GUI_EXPORT QgsRelationEditorWidget : public QgsCollapsibleGroupBox QgsAttributeEditorRelation::Buttons visibleButtons() const; /** - * Determines the force suppress form popup status. + * Determines the force suppress form popup status that is configured for this widget * \since QGIS 3.16 */ bool forceSuppressFormPopup() const; /** - * Sets force suppress form popup status to \a forceSuppressFormPopup. - * This flag will override the layer and general settings regarding the automatic - * opening of the attribute form dialog when digitizing is completed. + * Sets force suppress form popup status with \a forceSuppressFormPopup + * configured for this widget * \since QGIS 3.16 */ void setForceSuppressFormPopup( bool forceSuppressFormPopup );