Mercurial > libervia-web
comparison src/browser/sat_browser/base_panels.py @ 491:c97fe4059f71
browser side: fixes NS_ERROR_FAILURE while opening microblog panels (bug from rev 442 - changeset 17259c2ff96f in MicroblogPanel.refresh)
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 26 Jun 2014 08:25:30 +0200 |
parents | 830b50593597 |
children | 12823bcbd05b |
comparison
equal
deleted
inserted
replaced
490:c4d6d1254ec1 | 491:c97fe4059f71 |
---|---|
602 self.textarea.setText(self._original_content['text']) | 602 self.textarea.setText(self._original_content['text']) |
603 self.setWidget(self.textarea if edit else self.display) | 603 self.setWidget(self.textarea if edit else self.display) |
604 SimpleTextEditor.edit(self, edit, abort, sync) | 604 SimpleTextEditor.edit(self, edit, abort, sync) |
605 | 605 |
606 def setFocus(self, focus): | 606 def setFocus(self, focus): |
607 if focus: | 607 if focus and self.isAttached(): |
608 self.textarea.setCursorPos(len(self.textarea.getText())) | 608 self.textarea.setCursorPos(len(self.textarea.getText())) |
609 self.textarea.setFocus(focus) | 609 self.textarea.setFocus(focus) |