comparison src/browser/sat_browser/blog.py @ 775:08c6e097ff5d

browser side (blog): fixed click when comment, update or delete icons are not available
author Goffi <goffi@goffi.org>
date Wed, 25 Nov 2015 19:39:20 +0100
parents 734e59ba74a7
children 103f0f01ba54
comparison
equal deleted inserted replaced
774:734e59ba74a7 775:08c6e097ff5d
94 self.displayed = False # True when entry is added to parent 94 self.displayed = False # True when entry is added to parent
95 if comments_data: 95 if comments_data:
96 self.addComments(comments_data) 96 self.addComments(comments_data)
97 97
98 def refresh(self): 98 def refresh(self):
99 self.comment_label = None
100 self.update_label = None
101 self.delete_label = None
99 self.header.clear() 102 self.header.clear()
100 self.entry_dialog.clear() 103 self.entry_dialog.clear()
101 self.entry_actions.clear() 104 self.entry_actions.clear()
102 self._setHeader() 105 self._setHeader()
103 self._setBubble() 106 self._setBubble()
241 self.comment_label.setVisible(not self.editable) 244 self.comment_label.setVisible(not self.editable)
242 except (TypeError, AttributeError): 245 except (TypeError, AttributeError):
243 pass 246 pass
244 247
245 def onClick(self, sender): 248 def onClick(self, sender):
249
246 if sender == self: 250 if sender == self:
247 self.blog.setSelectedEntry(self) 251 self.blog.setSelectedEntry(self)
248 elif sender == self.delete_label: 252 elif sender == self.delete_label:
249 self._onRetractClick() 253 self._onRetractClick()
250 elif sender == self.update_label: 254 elif sender == self.update_label: