#4414 BLOC Update.: Journal search loses focus when it shouldn't
Zarro Boogs per Child
bugtracker at laptop.org
Tue Nov 13 09:45:55 EST 2007
#4414: Journal search loses focus when it shouldn't
-------------------------------+--------------------------------------------
Reporter: Eben | Owner: ApprovalForUpdate
Type: defect | Status: new
Priority: blocker | Milestone: Update.1
Component: journal-activity | Version:
Resolution: | Keywords:
Verified: 0 |
-------------------------------+--------------------------------------------
Changes (by tomeu):
* cc: tomeu (added)
* owner: tomeu => ApprovalForUpdate
Comment:
{{{
diff --git a/journalactivity.py b/journalactivity.py
index 5aee640..99ee437 100755
--- a/journalactivity.py
+++ b/journalactivity.py
@@ -147,11 +147,13 @@ class JournalActivity(activity.Activity):
self._show_main_view()
def _show_main_view(self):
- self.set_toolbox(self._main_toolbox)
- self._main_toolbox.show()
+ if self.toolbox != self._main_toolbox:
+ self.set_toolbox(self._main_toolbox)
+ self._main_toolbox.show()
- self.set_canvas(self._main_view)
- self._main_view.show()
+ if self.canvas != self._main_view:
+ self.set_canvas(self._main_view)
+ self._main_view.show()
def _show_secondary_view(self, jobject):
try:
}}}
This simple patch will fix that.
--
Ticket URL: <http://dev.laptop.org/ticket/4414#comment:5>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system
More information about the Bugs
mailing list