diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2011-06-08 20:09:14 (GMT) |
---|---|---|
committer | Sascha Silbe <silbe@activitycentral.com> | 2011-06-18 11:31:31 (GMT) |
commit | 7072ec5913ff6e1447666adf825c46edb0074a93 (patch) | |
tree | 6aa6354b7bbf1cb095072d12e7a15b233a26af17 /webtoolbar.py | |
parent | b102e4c61d753c219a7d03c3c5255c1da1f3100a (diff) |
Set and restore index in the history (OLPC #10779 / SL #2499)
Restoring the history index instead of (re)loading the active URL will
"distribute" the history over the Back and Forward buttons exactly the same
as before Stop + Resume instead of putting it all on the Back button.
[tweaked description]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Acked-By: Sascha Silbe <silbe@activitycentral.com>
Diffstat (limited to 'webtoolbar.py')
-rw-r--r-- | webtoolbar.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/webtoolbar.py b/webtoolbar.py index 8b0e108..6cb3ee7 100644 --- a/webtoolbar.py +++ b/webtoolbar.py @@ -355,6 +355,7 @@ class PrimaryToolbar(ToolbarBase): self._history = browser.history self._session_history_changed_hid = self._history.connect( 'session-history-changed', self._session_history_changed_cb) + self._reload_session_history() if self._browser is not None: self._browser.disconnect(self._title_changed_hid) |