Skip to content

Commit

Permalink
Fix crash when deactivating vertex editor (fixes #32685)
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Nov 7, 2019
1 parent bfea17e commit 9cb6740
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/app/vertextool/qgsvertextool.cpp
Expand Up @@ -1411,12 +1411,13 @@ void QgsVertexTool::showVertexEditor() //#spellok

void QgsVertexTool::cleanupVertexEditor()
{
mLockedFeature.reset();
// do not delete immediately because vertex editor
// can be still used in the qt event loop
mVertexEditor->deleteLater();

updateLockedFeatureVertices();
if ( mVertexEditor )
{
cleanupLockedFeature();
// do not delete immediately because vertex editor
// can be still used in the qt event loop
mVertexEditor->deleteLater();
}
}

void QgsVertexTool::cleanupLockedFeature()
Expand Down

0 comments on commit 9cb6740

Please sign in to comment.