aboutsummaryrefslogtreecommitdiff
path: root/src/compose.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compose.c')
-rw-r--r--src/compose.c6
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))