Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TamTam.py
diff options
context:
space:
mode:
authorNat <natcl@hotmail.com>2007-07-06 18:30:04 (GMT)
committer Nat <natcl@hotmail.com>2007-07-06 18:30:04 (GMT)
commit82057b47e8c27c7cf047715378fdc3b310073713 (patch)
treef8448435f47630ef8975e527d16d1fe65c8dd7f7 /TamTam.py
parenta7fd035f67700ea188d74cd6020cbc423e15bf27 (diff)
Save stuff
Diffstat (limited to 'TamTam.py')
-rwxr-xr-xTamTam.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/TamTam.py b/TamTam.py
index 70116c3..a15ddb5 100755
--- a/TamTam.py
+++ b/TamTam.py
@@ -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 ] )