Update of /cvsroot/todo-manager/todo-manager
In directory sc8-pr-cvs1:/tmp/cvs-serv8688
Modified Files:
interface.py
Log Message:
Somebody reported that creating a new file, adding a task, exiting the app,
clicking cancel at the "save file" prompt and then opening the options
dialog and closing it caused an error.
This was because the interface was saving all of it's options out and was
expecting to exit.
This small change fixes it by moving the call to save the options until
after the interface is closed.
Index: interface.py
===================================================================
RCS file: /cvsroot/todo-manager/todo-manager/interface.py,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- interface.py 14 Mar 2003 23:50:38 -0000 1.43
+++ interface.py 20 Mar 2003 00:23:43 -0000 1.44
@@ -646,9 +646,11 @@
self._app.set_ui_sorting_filter(self, s, f, self.__current_group)
def OnExit(self, event=None):
- self.save_config()
-
+ # Tell the core that the interface is no longer in use
if self._app.unbind_interface(self):
+ self.save_config()
+
+ # Destroy the main window
self._master.quit()
def draw_priority_box(self, canvas, row, column, x, y, tag):
|