Don't save to the journal on focus-out.

This commit is contained in:
Tomeu Vizoso 2007-05-16 17:55:56 +02:00
parent 7314d5a8c8
commit 1d31c51ecc

View File

@ -213,18 +213,12 @@ class Activity(Window, gtk.Container):
else:
self.jobject = None
self.connect('focus-out-event', self._focus_out_event_cb)
def _internal_jobject_create_cb(self):
pass
def _internal_jobject_error_cb(self, err):
logging.debug("Error creating activity datastore object: %s" % err)
def _focus_out_event_cb(self, widget, event):
if self.jobject:
self.save()
def read_file(self):
"""
Subclasses implement this method if they support resuming objects from