From 7072ec5913ff6e1447666adf825c46edb0074a93 Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Wed, 08 Jun 2011 20:09:14 +0000 Subject: 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 Acked-By: Sascha Silbe --- (limited to 'webtoolbar.py') 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) -- cgit v0.9.1