Skip to content

Commit

Permalink
Gui: fix crash in DAGView when deleting object
Browse files Browse the repository at this point in the history
Fixes #587
  • Loading branch information
realthunder committed Oct 15, 2022
1 parent fdb2214 commit 410ded6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Gui/CommandDoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,12 @@ void StdCmdDelete::activated(int iMsg)
return;
}

SelectionPauseNotification slock;
// Some code (e.g. DAGView) assumes any selection changes refers to
// existing object, and will crash if not. So must not delay
// notification.
//
// SelectionPauseNotification slock;

App::TransactionLocker tlock;

Gui::getMainWindow()->setUpdatesEnabled(false);
Expand Down

0 comments on commit 410ded6

Please sign in to comment.