Fixes replot problem after delete with key.

This commit is contained in:
jpcaram 2015-01-14 20:35:49 -05:00
parent 4c234fcd55
commit 2a21c426e3
2 changed files with 4 additions and 1 deletions

View File

@ -1156,6 +1156,7 @@ class App(QtCore.QObject):
:return: None
"""
self.log.debug("on_delete()")
self.report_usage("on_delete")
# Keep this for later

View File

@ -61,7 +61,9 @@ class ObjectCollection(QtCore.QAbstractListModel):
# Delete
if key == QtCore.Qt.Key_Delete:
self.delete_active()
# Delete via the application to
# ensure cleanup of the GUI
self.get_active().app.on_delete()
def on_mouse_down(self, event):
FlatCAMApp.App.log.debug("Mouse button pressed on list")