comparison frontends/src/quick_frontend/quick_app.py @ 2102:071423b3a413

quick frontend (quick app): fixed use of profile_manager.connected
author Goffi <goffi@goffi.org>
date Tue, 20 Dec 2016 21:07:22 +0100
parents 4bc408b549cd
children b44558286bbb
comparison
equal deleted inserted replaced
2101:cba3323710f0 2102:071423b3a413
906 906
907 def onExit(self): 907 def onExit(self):
908 """Must be called when the frontend is terminating""" 908 """Must be called when the frontend is terminating"""
909 to_unplug = [] 909 to_unplug = []
910 for profile, profile_manager in self.profiles.iteritems(): 910 for profile, profile_manager in self.profiles.iteritems():
911 if profile_manager.connected(profile) and profile_manager.autodisconnect: 911 if profile_manager.connected and profile_manager.autodisconnect:
912 #The user wants autodisconnection 912 #The user wants autodisconnection
913 self.disconnect(profile) 913 self.disconnect(profile)
914 to_unplug.append(profile) 914 to_unplug.append(profile)
915 for profile in to_unplug: 915 for profile in to_unplug:
916 self.unplug_profile(profile) 916 self.unplug_profile(profile)