Don't save to the journal on focus-out.
This commit is contained in:
parent
7314d5a8c8
commit
1d31c51ecc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user