diff options
author | Nat <natcl@hotmail.com> | 2007-07-16 18:50:14 (GMT) |
---|---|---|
committer | Nat <natcl@hotmail.com> | 2007-07-16 18:50:14 (GMT) |
commit | a3104b69e94db031fa10300a025ba7d75c820768 (patch) | |
tree | 4e1d8b157da5f246ec6ea536a2dd50c4c589f25b /TamTam.py | |
parent | f2fdf4556c6c51495a273fdc2eef51f0a98910e1 (diff) |
Small cleanup
Diffstat (limited to 'TamTam.py')
-rwxr-xr-x | TamTam.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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): |