~matias-wilkman/calendar-indicator/fix-typo-and-tautology

« back to all changes in this revision

Viewing changes to src/preferences_dialog.py

  • Committer: Lorenzo Carbonell
  • Date: 2012-11-26 06:33:55 UTC
  • Revision ID: lorenzo.carbonell.cerezo@gmail.com-20121126063355-f7hb914wz7bgak2o
Fixed a bug with preferences

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
                else:
195
195
                        self.switch5.set_active(False)
196
196
                if os.path.exists(comun.TOKEN_FILE):
197
 
                        if self.googlecalendar is not None:
 
197
                        if self.googlecalendar is not None:                             
198
198
                                calendars = self.googlecalendar.calendars.values()
199
199
                        else:
200
200
                                gca = GoogleCalendar(token_file = comun.TOKEN_FILE)
 
201
                                gca.read()
201
202
                                calendars = gca.get_calendars().values()
202
203
                        self.liststore.clear()
203
204
                        self.store.clear()