diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-11-13 15:00:10 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-11-13 15:00:10 (GMT) |
commit | 4f9f09cc9efccdb971e69823aef1d38e53cd9e43 (patch) | |
tree | 897b3dbacb8cff27ca7486e339830306e05bedbb | |
parent | b7fcc9ff35135f45d284d148fc0a44b8b3439c3b (diff) |
#4414 Don't unfocus the search entry when the autosearch is fired.
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | journalactivity.py | 10 |
2 files changed, 8 insertions, 4 deletions
@@ -1,3 +1,5 @@ +* #4414 Don't unfocus the search entry when the autosearch is fired. (tomeu) + 70 * #4638 Update dates when the journal is displayed. (tomeu) 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: |