diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-01-24 07:45:31 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-01-24 07:45:31 +0000 |
commit | 08d493a056aa2bc326f8d1f5f3c0dfa61511ceb1 (patch) | |
tree | c0b7903822b5246303bf974a64adfec9b34b2e85 /libsylph/account.c | |
parent | f41de13c3162472bba4fe9f3ac233f52f9827af1 (diff) |
save temporary IMAP4 password. Don't try to connect to IMAP4 server when closing folder.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@921 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/account.c')
-rw-r--r-- | libsylph/account.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libsylph/account.c b/libsylph/account.c index f9997ced..514825dd 100644 --- a/libsylph/account.c +++ b/libsylph/account.c @@ -1,6 +1,6 @@ /* * LibSylph -- E-Mail client library - * Copyright (C) 1999-2005 Hiroyuki Yamamoto + * Copyright (C) 1999-2006 Hiroyuki Yamamoto * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -431,10 +431,11 @@ void account_destroy(PrefsAccount *ac_prefs) folder_unref_account_all(ac_prefs); - prefs_account_free(ac_prefs); account_list = g_list_remove(account_list, ac_prefs); + if (cur_account == ac_prefs) + cur_account = NULL; + prefs_account_free(ac_prefs); - if (cur_account == ac_prefs) cur_account = NULL; if (!cur_account && account_list) { cur_account = account_get_default(); if (!cur_account) { |