From 8945c06437dca9a40882ccd7a768c63c47a70366 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 20 Dec 2005 08:05:18 +0000 Subject: look for all accounts when enable_swap_from is enabled. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@845 ee746299-78ed-0310-b773-934348b2243d --- src/account_dialog.c | 1 + src/folderview.c | 2 ++ src/summaryview.c | 5 ++--- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/account_dialog.c b/src/account_dialog.c index c93ff11e..5826ed4e 100644 --- a/src/account_dialog.c +++ b/src/account_dialog.c @@ -224,6 +224,7 @@ void account_open(PrefsAccount *ac_prefs) account_write_config_all(); account_set_menu(); main_window_reflect_prefs_all(); + account_updated(); } void account_set_missing_folder(void) diff --git a/src/folderview.c b/src/folderview.c index 52184244..8dca27ae 100644 --- a/src/folderview.c +++ b/src/folderview.c @@ -2440,6 +2440,7 @@ static void folderview_rm_imap_server_cb(FolderView *folderview, guint action, account = item->folder->account; folder_destroy(item->folder); account_destroy(account); + account_write_config_all(); sel_path = gtk_tree_row_reference_get_path(folderview->selected); if (sel_path) { @@ -2631,6 +2632,7 @@ static void folderview_rm_news_server_cb(FolderView *folderview, guint action, account = item->folder->account; folder_destroy(item->folder); account_destroy(account); + account_write_config_all(); sel_path = gtk_tree_row_reference_get_path(folderview->selected); if (sel_path) { diff --git a/src/summaryview.c b/src/summaryview.c index f30bc735..bf10d2a7 100644 --- a/src/summaryview.c +++ b/src/summaryview.c @@ -1881,13 +1881,12 @@ static void summary_set_row(SummaryView *summaryview, GtkTreeIter *iter, date_s = msginfo->date; else date_s = _("(No Date)"); - if (prefs_common.swap_from && msginfo->from && msginfo->to && - cur_account && cur_account->address) { + if (prefs_common.swap_from && msginfo->from && msginfo->to) { gchar *from; Xstrdup_a(from, msginfo->from, return); extract_address(from); - if (!strcmp(from, cur_account->address)) + if (account_address_exist(from)) sw_from_s = g_strconcat("-->", msginfo->to, NULL); } -- cgit v1.2.3