Fix TB when changing status and pm opened
This commit is contained in:
parent
2e50c301c8
commit
759f6a49f6
2 changed files with 5 additions and 3 deletions
|
@ -1464,8 +1464,9 @@ class ChatControl(ChatControlBase):
|
||||||
tb.set_active(not tb.get_active())
|
tb.set_active(not tb.get_active())
|
||||||
|
|
||||||
def got_connected(self):
|
def got_connected(self):
|
||||||
|
#FIXME: We can remove this function ? it's usefull only in GC
|
||||||
ChatControlBase.got_connected(self)
|
ChatControlBase.got_connected(self)
|
||||||
# Refreshing contact
|
# Refreshing contact
|
||||||
self.contact = gajim.contacts.get_contact_with_highest_priority(self.account,
|
self.contact = gajim.contacts.get_contact_with_highest_priority(
|
||||||
self.contact.jid)
|
self.account, self.contact.jid)
|
||||||
self.draw_banner()
|
self.draw_banner()
|
||||||
|
|
|
@ -280,7 +280,8 @@ class Interface:
|
||||||
model[self.roster.status_message_menuitem_iter][3] = True
|
model[self.roster.status_message_menuitem_iter][3] = True
|
||||||
|
|
||||||
# Inform all controls for this account of the connection state change
|
# Inform all controls for this account of the connection state change
|
||||||
for ctrl in gajim.interface.msg_win_mgr.controls():
|
for ctrl in gajim.interface.msg_win_mgr.get_controls(
|
||||||
|
type = message_control.TYPE_GC):
|
||||||
if ctrl.account == account:
|
if ctrl.account == account:
|
||||||
if status == 'offline':
|
if status == 'offline':
|
||||||
ctrl.got_disconnected()
|
ctrl.got_disconnected()
|
||||||
|
|
Loading…
Add table
Reference in a new issue