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 a49fe27e498b4abc37a78a225cdd7f6d7cd8a30e..37eb6db2af41a6c59f965e5637020ad923905d85 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.