Merge pull request #7702 from m-kuhn/relationRecursionCrash

Fix crash when relations would be recursively nested
This commit is contained in:
Matthias Kuhn 2018-08-24 18:02:25 +02:00 committed by GitHub
commit 38d1c68cfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ void QgsRelationWidgetWrapper::setVisible( bool visible )
void QgsRelationWidgetWrapper::aboutToSave()
{
if ( !mRelation.isValid() )
if ( !mRelation.isValid() || !widget() || !widget()->isVisible() )
return;
// Calling isModified() will emit a beforeModifiedCheck()