Hi, Franck. What is the motivation of the "elif not 
self.__taskFile.isEmpty()" in IOController.save() ?

     def save(self, *args):
         if self.__taskFile.filename():
             self.__taskFile.save()
             self.__showSaveMessage(self.__taskFile)
             return True
         elif not self.__taskFile.isEmpty():
             return self.saveas()
         else:
             return False

The problem is the following: starting with an empty file, if I create 
a task, undo the create, and try to save, the taskfile is still marked 
dirty, the save button is still enabled and I get the confirmation 
dialog when quitting, which I suppose is not the intended behaviour :)

Reply via email to