Skip to content
Permalink
Browse files

[node editor] fix crash when editor is open and feature deleted

  • Loading branch information
nirvn authored and wonder-sk committed Nov 23, 2017
1 parent 248bc5d commit 134065dae52954b0d74f99d4feb98d3aec0241c4
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/app/nodetool/qgsnodetool.cpp
@@ -965,6 +965,7 @@ void QgsNodeTool::showNodeEditor()
mNodeEditor.reset( new QgsNodeEditor( m.layer(), mSelectedFeature.get(), mCanvas ) );
QgisApp::instance()->addDockWidget( Qt::LeftDockWidgetArea, mNodeEditor.get() );
connect( mNodeEditor.get(), &QgsNodeEditor::deleteSelectedRequested, this, &QgsNodeTool::deleteNodeEditorSelection );
connect( mSelectedFeature.get()->vlayer(), &QgsVectorLayer::featureDeleted, this, [ = ]( QgsFeatureId id ) { if ( mSelectedFeature.get()->featureId() == id ) cleanupNodeEditor(); } );
}

void QgsNodeTool::cleanupNodeEditor()

0 comments on commit 134065d

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