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 20:41:54 (GMT)
committer Nat <natcl@hotmail.com>2007-07-16 20:41:54 (GMT)
commita2f7a2b41791c2222b5b5a286dd71ee7d0fef2cd (patch)
treeabb52f7fb85f802a439cecb30da6f07124cb9847 /TamTam.py
parenta3104b69e94db031fa10300a025ba7d75c820768 (diff)
cleanup
Diffstat (limited to 'TamTam.py')
-rwxr-xr-xTamTam.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/TamTam.py b/TamTam.py
index c636bd8..6830110 100755
--- a/TamTam.py
+++ b/TamTam.py
@@ -97,17 +97,17 @@ 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() # Save and cleanup
+ self.destroy()
+
if self.mode != None:
self.modeList[ self.mode ].onDeactivate()
self.remove( self.modeList[ self.mode ] )
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):