aboutsummaryrefslogtreecommitdiff
path: root/src/summaryview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/summaryview.c')
-rw-r--r--src/summaryview.c5
1 files changed, 2 insertions, 3 deletions
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);
}