comparison libervia.py @ 227:67e24c342e7f

browser_side: bug fix for changeset 3092f6b1710c OK button title was not set for the "Add contact request" dialog
author souliane <souliane@mailoo.org>
date Mon, 07 Oct 2013 14:23:16 +0200
parents 744426c2b699
children e632f77c4219
comparison
equal deleted inserted replaced
226:744426c2b699 227:67e24c342e7f
544 def ok_cb(ignore): 544 def ok_cb(ignore):
545 self.bridge.call('subscription', None, "subscribed", entity, '', _dialog.getSelectedGroups()) 545 self.bridge.call('subscription', None, "subscribed", entity, '', _dialog.getSelectedGroups())
546 def cancel_cb(ignore): 546 def cancel_cb(ignore):
547 self.bridge.call('subscription', None, "unsubscribed", entity, '', '') 547 self.bridge.call('subscription', None, "unsubscribed", entity, '', '')
548 548
549 _dialog = dialog.GroupSelector([msg], self.contact_panel.getGroups(), [], ok_cb, cancel_cb) 549 _dialog = dialog.GroupSelector([msg], self.contact_panel.getGroups(), [], "Add", ok_cb, cancel_cb)
550 _dialog.setHTML('<b>Add contact request</b>') 550 _dialog.setHTML('<b>Add contact request</b>')
551 _dialog.show() 551 _dialog.show()
552 552
553 def _contactDeletedCb(self, entity): 553 def _contactDeletedCb(self, entity):
554 self.contact_panel.removeContact(entity) 554 self.contact_panel.removeContact(entity)