2007-04-30 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Mon, 30 Apr 2007 14:44:29 +0000 (14:44 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Mon, 30 Apr 2007 14:44:29 +0000 (14:44 +0000)
commit652527fd671cc695045b75893d7010c246585ef2
tree888cae620e3bd4835e567a940f8507a757f2f380
parent850bcc46fdd95e24bd1d6867d067155f5c518881
2007-04-30  Murray Cumming  <murrayc@murrayc.com>

* src/modest-account-mgr-helpers.h:
        * src/modest-account-mgr-helpers.c:
        Added modest_account_mgr_unset_default_account(),
        Added modest_account_mgr_set_first_account_as_default().

        * src/modest-account-mgr.c: (modest_account_mgr_remove_account):
        If it was the default account, unset the default account name.

        * src/maemo/modest-account-view-window.c:
        (on_delete_button_clicked): If it was the default account,
        set the first remaining account as the default instead.

        * src/maemo/modest-main-window.c: (on_account_update): Do not try to use
        a NULL account or a NULL default account, to prevent a crash. This should
        not happen now anyway. Bug #55343 in projects.maemo.org/bugzilla.

pmo-trunk-r1724
ChangeLog2
src/maemo/modest-account-view-window.c
src/maemo/modest-main-window.c
src/modest-account-mgr-helpers.c
src/modest-account-mgr-helpers.h
src/modest-account-mgr.c