diff options
author | Lucian Branescu Mihaila <lucian.branescu@gmail.com> | 2010-07-12 20:22:13 (GMT) |
---|---|---|
committer | Lucian Branescu Mihaila <lucian.branescu@gmail.com> | 2010-07-12 20:22:13 (GMT) |
commit | 48a9ee168f581731e790057f0562d1e8362f6e33 (patch) | |
tree | 59ca452a37a4e0de4b7de18e6ae9eafd188039d5 | |
parent | a5150fd891ab78e863ca1b1d7347fe8f70c985e6 (diff) |
Apply Raul's patch, fixes keep error.
-rw-r--r-- | browser.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -228,10 +228,11 @@ class Browser(webkit.WebView): async_cb(file_path) def get_session(self): + limit = 10 history = self.get_back_forward_list() - history_items = history.get_back_list_with_limit() + \ - history.get_current_item() + \ - history.get_forward_list_with_limit() + 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: @@ -239,7 +240,7 @@ class Browser(webkit.WebView): 'title': item.props.title} entries.append(entry) - return entries_dest + return entries def set_session(self, data): history = self.get_back_forward_list() |