From 41d130d1f049a46e95dab6c0823faa4f72603044 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 26 Feb 2020 21:22:38 +0100 Subject: Add note about redundant arc deletion when deleting a selection --- src/gui/GraphCanvas.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui') diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp index 13b17bdf..40a0c675 100644 --- a/src/gui/GraphCanvas.cpp +++ b/src/gui/GraphCanvas.cpp @@ -600,8 +600,11 @@ void GraphCanvas::destroy_selection() { _app.interface()->bundle_begin(); + + // TODO: Refine this to not destroy arcs that will be anyway? for_each_selected_edge(destroy_arc, &_app); for_each_selected_node(destroy_node, &_app); + _app.interface()->bundle_end(); } -- cgit v1.2.1