Skip to content

Commit

Permalink
Avoid crash when relation disappears (#7622)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and 3nids committed Aug 15, 2018
1 parent a82de83 commit d8adad8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp
Expand Up @@ -48,6 +48,9 @@ void QgsRelationWidgetWrapper::setVisible( bool visible )

void QgsRelationWidgetWrapper::aboutToSave()
{
if ( !mRelation.isValid() )
return;

// Calling isModified() will emit a beforeModifiedCheck()
// signal that will make the embedded form to send any
// outstanding widget changes to the edit buffer
Expand Down

0 comments on commit d8adad8

Please sign in to comment.