Comment 5 for bug 1191096

Revision history for this message
Joshua Tasker (jtasker) wrote :

Hmm, it may not be exactly that line number, so here is the corrected block of code:

        # If places have changed - update weather data
        if wi.places_changed:
            log.debug("Preferences: Places changed to '%s'" % wi.places)
            wi.settings.set_value("places", wi.places)
            wi.placechosen = 0
            if (type(wi.place) != None):
                for i in xrange(len(wi.places)):
                    if wi.places[i] is not None and wi.places[i][0] == wi.place[0]:
                        wi.placechosen = i
            wi.place = wi.places[0]
            log.debug("Preferences: Place Chosen changed to '%s'" % wi.placechosen)
            wi.settings.set_value("placechosen", wi.placechosen)
            wi.location_details = wi.settings.get_location_details(wi.place[0])
            need_to_update_weather = True
            wi.places_changed = False