From: Andy T. <an...@ha...> - 2005-01-24 10:29:25
|
Simon Hibbs wrote: > The deleteRecord method in the Document class doesn't > update self.documentChanged. If you open a database > and only delete records, the file won't be updated, > even if you do an explicit save, because the save > method checks self.documentChanged and does nothing if > it's set to zero. > > If you delete some records, but also add some new records, > adding the new records causes sel.documentChanged to be > updated and the deletions 'stick'. > > Only one line of code needs to be added. Here's the fixed > method, up to the new line: > > def deleteRecord(self): > # should probably do a dialog here to give the user > # a chance to cancel > if self.current != -1: > del self.records[self.current] > self.documentChanged = 1 # Bug fix > ..... > > Is this the right list for bug reports? If not, where do I > take this? > > > Simon > Fixed in CVS, thanks for the notification. Yes this is the right place to report bugs, even more so when you provide a solution ;-) Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |