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 aa43376 commit 680cf71d31dd5f9893dc17b732e4cd811f164f3b
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 680cf71

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