Skip to content

Commit c4eb57d

Browse files
m-kuhn3nids
authored andcommittedAug 15, 2018
Avoid crash when relation disappears (#7624)
1 parent 24bc213 commit c4eb57d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ void QgsRelationWidgetWrapper::setVisible( bool visible )
4848

4949
void QgsRelationWidgetWrapper::aboutToSave()
5050
{
51+
if ( !mRelation.isValid() )
52+
return;
53+
5154
// Calling isModified() will emit a beforeModifiedCheck()
5255
// signal that will make the embedded form to send any
5356
// outstanding widget changes to the edit buffer

0 commit comments

Comments
 (0)
Please sign in to comment.