mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
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).
This commit is contained in:
parent
a5a6f0058a
commit
4c52faa0df
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user