Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser.py
diff options
context:
space:
mode:
authorLucian Branescu Mihaila <lucian.branescu@gmail.com>2010-07-13 21:10:36 (GMT)
committer Lucian Branescu Mihaila <lucian.branescu@gmail.com>2010-07-13 21:10:36 (GMT)
commitad64466a68ce5a52a1895fec4cc695522d6c6110 (patch)
tree4bafc85fe813f4b99cbd4ee2a3544801ff0f9b13 /browser.py
parentd36c76586fe5eb6cc0b778e3a247ed4e5e259da1 (diff)
Remove workaround in favour of a better way.
Diffstat (limited to 'browser.py')
-rw-r--r--browser.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/browser.py b/browser.py
index c32d49e..289b792 100644
--- a/browser.py
+++ b/browser.py
@@ -233,6 +233,8 @@ class Browser(webkit.WebView):
history_items = history.get_back_list_with_limit(limit) + \
[history.get_current_item()] + \
history.get_forward_list_with_limit(limit)
+
+
entries = []
for item in history_items:
@@ -240,6 +242,7 @@ class Browser(webkit.WebView):
'title': item.props.title}
entries.append(entry)
+ logging.warning('History: %s' % (entries))
return entries
def set_session(self, data):
@@ -260,9 +263,7 @@ class Browser(webkit.WebView):
history.add_item(entry)
if data:
- # workaround to get the history back on track
- self.go_back()
- self.go_forward()
+ self.go_to_back_forward_item(history.get_current_item())
else:
self.load_uri('about:blank')