# HG changeset patch # User Goffi # Date 1282238019 -28800 # Node ID 7baee9bb37aff5423b4d14f6b96a0c419481e5d3 # Parent 58f96e66ec17e4cf7bada72e902822bcaa3fa7d6 quick_frontend: fixed disconnect, and removed autojoin of muc room put for dev diff -r 58f96e66ec17 -r 7baee9bb37af frontends/quick_frontend/quick_app.py --- a/frontends/quick_frontend/quick_app.py Fri Aug 20 01:12:43 2010 +0800 +++ b/frontends/quick_frontend/quick_app.py Fri Aug 20 01:13:39 2010 +0800 @@ -177,7 +177,6 @@ return debug(_("Connected")) self.setStatusOnline(True) - self.bridge.joinMUC('conference.necton2.int', 'test', self.profiles[self.profile]['whoami'].node, self.profile) #gof: def disconnected(self, profile): @@ -429,7 +428,10 @@ def onExit(self): """Must be called when the frontend is terminating""" #TODO: mange multi-profile here - autodisconnect = self.bridge.getParamA("autodisconnect","Connection", self.profile) == "true" - if autodisconnect and self.bridge.isConnected(self.profile): - #Does the user want autodisconnection ? - self.bridge.disconnect(self.profile) + try: + autodisconnect = self.bridge.getParamA("autodisconnect","Connection", self.profile) == "true" + if autodisconnect and self.bridge.isConnected(self.profile): + #Does the user want autodisconnection ? + self.bridge.disconnect(self.profile) + except: + pass