Mercurial > libervia-web
comparison browser_side/dialog.py @ 32:6b8da70b0799
browser_side: contactsChooser now discard MUC rooms
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 14 May 2011 00:58:11 +0200 |
parents | 824516b247e6 |
children | 305e81c7a32c |
comparison
equal
deleted
inserted
replaced
31:cb07078f8d6f | 32:6b8da70b0799 |
---|---|
68 """ | 68 """ |
69 Actually ask to choose the contacts | 69 Actually ask to choose the contacts |
70 """ | 70 """ |
71 self.contacts_list.clear() | 71 self.contacts_list.clear() |
72 for contact in self.host.contact_panel.getConnected(): | 72 for contact in self.host.contact_panel.getConnected(): |
73 self.contacts_list.addItem(contact) | 73 if contact not in [room.bare for room in self.host.room_list]: |
74 self.contacts_list.addItem(contact) | |
74 self.show() | 75 self.show() |
75 | 76 |
76 def onChoose(self): | 77 def onChoose(self): |
77 self.hide() | 78 self.hide() |
78 self.callback(self.contacts_list.getSelectedValues()) | 79 self.callback(self.contacts_list.getSelectedValues()) |