From a66b4b9f58149bd2827f5930c6e012582c5eaaaa Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 9 Nov 2011 15:03:58 -0500 Subject: [PATCH] Don't delete curve files through the GUI's delete function. It is enough for them to be removed from the playlist. There is no need to touch the raw data file itself. --- hooke/ui/gui/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hooke/ui/gui/__init__.py b/hooke/ui/gui/__init__.py index a49fe27..37eb6db 100644 --- a/hooke/ui/gui/__init__.py +++ b/hooke/ui/gui/__init__.py @@ -605,7 +605,8 @@ class HookeFrame (wx.Frame): def _on_delete_curve(self, _class, method, playlist, curve): # TODO: execute_command 'remove curve from playlist' - os.remove(curve.path) + #os.remove(curve.path) + pass def _on_set_selected_playlist(self, _class, method, playlist): """Call the `jump to playlist` command. -- 2.26.2