From cd9bfee223ddbcd15f2fe69aa899e535d0b6c67d Mon Sep 17 00:00:00 2001 From: Anna Date: Wed, 21 Apr 2010 11:56:17 -0400 Subject: [PATCH] Fixed restoring last open tab --- mytwitter.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mytwitter.py b/mytwitter.py index c9106d8..e341611 100755 --- a/mytwitter.py +++ b/mytwitter.py @@ -78,11 +78,10 @@ class MyTwitter(): self.account_select.set_active(0) # Add the tabs from last session to the notebook + page_num = self.db['active_page'] for tab, single_tweet in self.db['open_tabs']: self.add_to_notebook(tab, single_tweet) - - # Switch to the correct page from the last session - self.tweet_notebook.set_current_page(self.db['active_page']) + self.tweet_notebook.set_current_page(page_num) # Put Home, @user, Direct Messages, and lists in the View menu for # each user