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-16 18:50:14 (GMT)
committer Nat <natcl@hotmail.com>2007-07-16 18:50:14 (GMT)
commita3104b69e94db031fa10300a025ba7d75c820768 (patch)
tree4e1d8b157da5f246ec6ea536a2dd50c4c589f25b /TamTam.py
parentf2fdf4556c6c51495a273fdc2eef51f0a98910e1 (diff)
Small cleanup
Diffstat (limited to 'TamTam.py')
-rwxr-xr-xTamTam.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/TamTam.py b/TamTam.py
index 514adec..c636bd8 100755
--- a/TamTam.py
+++ b/TamTam.py
@@ -97,10 +97,6 @@ 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.close()
- self.destroy()
- return
if self.mode != None:
self.modeList[ self.mode ].onDeactivate()
@@ -108,6 +104,10 @@ class TamTam(Activity):
self.mode = None
self.trackpad.setContext(mode)
+
+ if mode == 'quit':
+ self.close() # Save and cleanup
+ self.destroy()
if mode == 'welcome':
if not (mode in self.modeList):