diff options
author | Nat <natcl@hotmail.com> | 2007-07-06 18:30:04 (GMT) |
---|---|---|
committer | Nat <natcl@hotmail.com> | 2007-07-06 18:30:04 (GMT) |
commit | 82057b47e8c27c7cf047715378fdc3b310073713 (patch) | |
tree | f8448435f47630ef8975e527d16d1fe65c8dd7f7 /TamTam.py | |
parent | a7fd035f67700ea188d74cd6020cbc423e15bf27 (diff) |
Save stuff
Diffstat (limited to 'TamTam.py')
-rwxr-xr-x | TamTam.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -97,10 +97,12 @@ class TamTam(Activity): pass def set_mode(self, mode, arg = None): if Config.DEBUG: print 'DEBUG: TamTam::set_mode from', self.mode, 'to', mode + if mode == 'quit': + self.save() + self.destroy() + return if self.mode != None: - if self.mode == "edit" or self.mode == "synth": - self.save() # save the activity self.modeList[ self.mode ].onDeactivate() self.remove( self.modeList[ self.mode ] ) |