diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-12-21 10:17:43 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-12-21 10:17:43 +0000 |
commit | 99a8803e962701d0b9b43d0421cdc0bb05e8f02a (patch) | |
tree | 7ae8246cdd93921068bf453f9cd5c28b79a8bbd9 /src/compose.c | |
parent | ace1046e570adceb22ce1ee924169b81676517d6 (diff) |
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
Diffstat (limited to 'src/compose.c')
-rw-r--r-- | src/compose.c | 6 |
1 files changed, 4 insertions, 2 deletions
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)) |