From 99a8803e962701d0b9b43d0421cdc0bb05e8f02a Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 21 Dec 2005 10:17:43 +0000 Subject: reflect flag changes on virtual folders in the real ones. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@850 ee746299-78ed-0310-b773-934348b2243d --- src/compose.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/compose.c') diff --git a/src/compose.c b/src/compose.c index b1d12dcc..2e77a6df 100644 --- a/src/compose.c +++ b/src/compose.c @@ -769,7 +769,8 @@ void compose_reply(MsgInfo *msginfo, FolderItem *item, ComposeMode mode, MSG_UNSET_PERM_FLAGS(msginfo->flags, MSG_FORWARDED); MSG_SET_PERM_FLAGS(msginfo->flags, MSG_REPLIED); MSG_SET_TMP_FLAGS(msginfo->flags, MSG_FLAG_CHANGED); - msginfo->folder->mark_dirty = TRUE; + if (item) + item->mark_dirty = TRUE; if (MSG_IS_IMAP(msginfo->flags)) imap_msg_set_perm_flags(msginfo, MSG_REPLIED); @@ -861,7 +862,8 @@ void compose_forward(GSList *mlist, FolderItem *item, gboolean as_attach, MSG_UNSET_PERM_FLAGS(msginfo->flags, MSG_REPLIED); MSG_SET_PERM_FLAGS(msginfo->flags, MSG_FORWARDED); MSG_SET_TMP_FLAGS(msginfo->flags, MSG_FLAG_CHANGED); - msginfo->folder->mark_dirty = TRUE; + if (item) + item->mark_dirty = TRUE; } msginfo = (MsgInfo *)mlist->data; if (MSG_IS_IMAP(msginfo->flags)) -- cgit v1.2.3