Mercurial > libervia-web
comparison src/browser/sat_browser/dialog.py @ 944:5d9f6d25c586
browser: various fixes
this is a first pass to fix main Libervia features which have been broken with changes in backend:
- fixed Chat signature
- added/removed/replaced a couple of missing methods
- use contact_list_widget instead of contact_list when needed
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 19 May 2017 17:03:04 +0200 |
parents | f8a7a046ff9c |
children | fd4eae654182 |
comparison
equal
deleted
inserted
replaced
943:aacda981c348 | 944:5d9f6d25c586 |
---|---|
176 | 176 |
177 @param keep_selected (boolean): if True, keep the current selection | 177 @param keep_selected (boolean): if True, keep the current selection |
178 """ | 178 """ |
179 selection = self.contacts if keep_selected else [] | 179 selection = self.contacts if keep_selected else [] |
180 self.contacts_list.clear() | 180 self.contacts_list.clear() |
181 contacts = self.host.contact_list.roster_entities_connected | 181 contacts = self.host.contact_list.roster_connected |
182 self.contacts_list.setVisibleItemCount(10 if len(contacts) > 5 else 5) | 182 self.contacts_list.setVisibleItemCount(10 if len(contacts) > 5 else 5) |
183 self.contacts_list.addItem("") | 183 self.contacts_list.addItem("") |
184 for contact in contacts: | 184 for contact in contacts: |
185 self.contacts_list.addItem(contact) | 185 self.contacts_list.addItem(contact) |
186 if selection: | 186 if selection: |