comparison browser_side/dialog.py @ 209:4564c7bc06a7

browser side: fixed setGroupsSelected in GroupSelector
author Goffi <goffi@goffi.org>
date Fri, 28 Jun 2013 00:06:31 +0200
parents bbcad87585eb
children 3092f6b1710c
comparison
equal deleted inserted replaced
208:bbcad87585eb 209:4564c7bc06a7
242 self.list_box.clear() 242 self.list_box.clear()
243 for group in _groups: 243 for group in _groups:
244 self.list_box.addItem(group) 244 self.list_box.addItem(group)
245 245
246 def setGroupsSelected(self, selected_groups): 246 def setGroupsSelected(self, selected_groups):
247 if groups: 247 self.list_box.setItemTextSelection(selected_groups)
248 self.list_box.setItemTextSelection(selected_groups)
249 248
250 def onOK(self, sender): 249 def onOK(self, sender):
251 self.hide() 250 self.hide()
252 if self.ok_cb: 251 if self.ok_cb:
253 self.ok_cb(self) 252 self.ok_cb(self)