Fixed restoring last open tab

This commit is contained in:
Anna 2010-04-21 11:56:17 -04:00
parent 3bda037e2a
commit cd9bfee223

View File

@ -78,11 +78,10 @@ class MyTwitter():
self.account_select.set_active(0) self.account_select.set_active(0)
# Add the tabs from last session to the notebook # Add the tabs from last session to the notebook
page_num = self.db['active_page']
for tab, single_tweet in self.db['open_tabs']: for tab, single_tweet in self.db['open_tabs']:
self.add_to_notebook(tab, single_tweet) self.add_to_notebook(tab, single_tweet)
self.tweet_notebook.set_current_page(page_num)
# Switch to the correct page from the last session
self.tweet_notebook.set_current_page(self.db['active_page'])
# Put Home, @user, Direct Messages, and lists in the View menu for # Put Home, @user, Direct Messages, and lists in the View menu for
# each user # each user