Skip to content
Permalink
Browse files

Avoid crash when relation disappears (#7622)

  • Loading branch information
m-kuhn authored and 3nids committed Aug 15, 2018
1 parent a82de83 commit d8adad8ad74ebce611a5d0ac70ac27fa53b922f1
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp
@@ -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

0 comments on commit d8adad8

Please sign in to comment.
You can’t perform that action at this time.