From 0948af15c4895831949bb2f6f52c63c4b6f8a2d3 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Wed, 08 Jul 2009 13:52:09 +0000 Subject: Correct ordering when saving tabs --- (limited to 'browser.py') diff --git a/browser.py b/browser.py index 08ee1a5..237dc3b 100644 --- a/browser.py +++ b/browser.py @@ -1,6 +1,6 @@ # Copyright (C) 2006, Red Hat, Inc. # Copyright (C) 2007, One Laptop Per Child -# Copyright (C) 2009, Tomeu Vizoso +# Copyright (C) 2009, Tomeu Vizoso, Simon Schampijer # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -180,7 +180,7 @@ class TabbedView(gtk.Notebook): def get_session(self): tab_sessions = [] - for index in xrange(-1, self.get_n_pages() - 1): + for index in xrange(0, self.get_n_pages()): browser = self.get_nth_page(index) tab_sessions.append(sessionstore.get_session(browser)) return tab_sessions -- cgit v0.9.1