|
From: Alex T. <ale...@us...> - 2004-10-05 17:33:24
|
Update of /cvsroot/pythoncard/PythonCard/tools/oneEditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25112/tools/oneEditor Modified Files: tabcodeEditor.py Log Message: Remove the old "save current doc" logic from File/History (open) Index: tabcodeEditor.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/tools/oneEditor/tabcodeEditor.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tabcodeEditor.py 5 Oct 2004 12:08:22 -0000 1.4 --- tabcodeEditor.py 5 Oct 2004 17:32:54 -0000 1.5 *************** *** 356,377 **** fileNum = event.GetId() - wx.ID_FILE1 path = self.fileHistory.GetHistoryFile(fileNum) - if self.currentDocument.GetModify(): - save = self.saveChanges(self.currentPage.documentPath) - if save == "Cancel": - # don't do anything, just go back to editing - return - elif save == "No": - # any changes will be lost - pass - else: - if self.currentPage.documentPath is None: - # if the user cancels out of the Save As then go back to editing - if not self.on_menuFileSaveAs_select(None): - return - else: - self.saveFile(self.currentPage.documentPath) self.openFile(path) - # back to PythonCard methods --- 356,361 ---- |