Skip to content

Commit 4c52faa

Browse files
committed
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).
1 parent a5a6f00 commit 4c52faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void QgsRelationWidgetWrapper::setVisible( bool visible )
4848

4949
void QgsRelationWidgetWrapper::aboutToSave()
5050
{
51-
if ( !mRelation.isValid() )
51+
if ( !mRelation.isValid() || !widget() || !widget()->isVisible() )
5252
return;
5353

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

0 commit comments

Comments
 (0)