Don't delete curve files through the GUI's delete function.
authorW. Trevor King <wking@drexel.edu>
Wed, 9 Nov 2011 20:03:58 +0000 (15:03 -0500)
committerW. Trevor King <wking@drexel.edu>
Wed, 9 Nov 2011 20:03:58 +0000 (15:03 -0500)
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

index a49fe27..37eb6db 100644 (file)
@@ -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.