Skip to content

Commit

Permalink
Fix breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Jan 8, 2021
1 parent ebddedd commit 7708569
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Expand Up @@ -62,7 +62,7 @@ inserting and deleting entries on the intermediate table as required.
Sets the ``feature`` being edited and updates the UI unless ``update`` is set to ``False``
%End

void setEditorContext( const QgsAttributeEditorContext &context );
virtual void setEditorContext( const QgsAttributeEditorContext &context );
%Docstring
Sets the editor ``context``

Expand Down
3 changes: 2 additions & 1 deletion python/gui/auto_generated/qgsrelationeditorwidget.sip.in
Expand Up @@ -72,7 +72,8 @@ The feature selection manager is responsible for the selected features
which are currently being edited.
%End

void setEditorContext( const QgsAttributeEditorContext &context );
virtual void setEditorContext( const QgsAttributeEditorContext &context );

%Docstring
Sets the editor ``context``

Expand Down
3 changes: 1 addition & 2 deletions src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp
Expand Up @@ -190,9 +190,8 @@ void QgsRelationWidgetWrapper::initWidget( QWidget *editor )
}
while ( ctx );

w->setRelations( mRelation, mNmRelation );

w->setEditorContext( myContext );
w->setRelations( mRelation, mNmRelation );

mWidget = w;
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsabstractrelationeditorwidget.h
Expand Up @@ -101,7 +101,7 @@ class GUI_EXPORT QgsAbstractRelationEditorWidget : public QWidget
* \note if context cadDockWidget is null, it won't be possible to digitize
* the geometry of a referencing feature from this widget
*/
void setEditorContext( const QgsAttributeEditorContext &context );
virtual void setEditorContext( const QgsAttributeEditorContext &context );

/**
* Returns the attribute editor context.
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsrelationeditorwidget.h
Expand Up @@ -136,7 +136,7 @@ class GUI_EXPORT QgsRelationEditorWidget : public QgsAbstractRelationEditorWidge
* \note if context cadDockWidget is null, it won't be possible to digitize
* the geometry of a referencing feature from this widget
*/
void setEditorContext( const QgsAttributeEditorContext &context );
void setEditorContext( const QgsAttributeEditorContext &context ) override;

/**
* Defines the buttons which are shown
Expand Down

0 comments on commit 7708569

Please sign in to comment.