I just changed (following Gustavo's idea) this:
def close(self, quitting=False): - close = self.document_save_hook(can_cancel=(not quitting)) + close = self.document_save_hook(can_cancel=True)
Nothing else was changed. It's not beautiful but I don't know if I don't see if can_cancel argument may have an interest.
I just changed (following Gustavo's idea) this:
def close(self, quitting=False): save_hook( can_cancel= (not quitting)) save_hook( can_cancel= True)
- close = self.document_
+ close = self.document_
Nothing else was changed. It's not beautiful but I don't know if I don't see if can_cancel argument may have an interest.