View Single Post
Posts: 74 | Thanked: 25 times | Joined on Jan 2010 @ Hong Kong, CHINA
#462
In my version, when editing a profile, the "Remote Source" text is always the last google calendar available. This isn't right (and a bit scary-looking - though clicking the "Remote Source" button shows the proper calendar selected").

To fix this, in profile_ui.py, I think the "if pid <> None" statement should have an "else:" block that contains the two "if google_accts"... blocks, like:

Code:
        # editing profile                                                      
        if pid is not  None:
                dialog.set_title("Edit Profile")
                fill_form(pid)
                current_profile_id = pid
                editing = True
        else:
                if google_accounts.get_registered_accounts_count() == 0:
                        ask_for_google_account_creation(dialog)

                if google_accounts.get_registered_accounts_count() == 1:
                        # Pre-select the only Google account available:
                        account_selector.set_active(0, 0)

        dialog.show_all()
        dialog.run()
 

The Following User Says Thank You to mdengler For This Useful Post: