Skip to content
Browse files
Fix crash when relations would be recursively nested
There is already code, that avoids building up widgets in such a situation. With this patch
it also avoids recursively calling methods on relations which are hidden (because of nesting or other reasons).
  • Loading branch information
m-kuhn committed Aug 25, 2018
1 parent 0782c12 commit 00a871a66d05a1025df8299a118aca623347e049
Showing 1 changed file with 1 addition and 1 deletion.
@@ -48,7 +48,7 @@ void QgsRelationWidgetWrapper::setVisible( bool visible )

void QgsRelationWidgetWrapper::aboutToSave()
if ( !mRelation.isValid() )
if ( !mRelation.isValid() || !widget() || !widget()->isVisible() )

// Calling isModified() will emit a beforeModifiedCheck()

0 comments on commit 00a871a

Please sign in to comment.