From a2b0fea02640e4aefa24788c5096a32d5743050f Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sun, 19 Aug 2001 19:10:55 +0000 Subject: Reset the "changed" state to FALSE after a successful save. 2001-08-19 Jeffrey Stedfast * e-msg-composer.c (save_draft): Reset the "changed" state to FALSE after a successful save. svn path=/trunk/; revision=12224 --- composer/ChangeLog | 5 +++++ composer/e-msg-composer.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'composer') diff --git a/composer/ChangeLog b/composer/ChangeLog index f49833665f..ac456c73a5 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2001-08-19 Jeffrey Stedfast + + * e-msg-composer.c (save_draft): Reset the "changed" state to + FALSE after a successful save. + 2001-08-17 Jeffrey Stedfast * e-msg-composer.c (show_attachments): Toggle the diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 89f30f4a5a..c506242714 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1008,6 +1008,9 @@ save_draft (EMsgComposer *composer, int quitok) mail_append_mail (folder, msg, info, save_done, si); camel_object_unref (CAMEL_OBJECT (msg)); + + /* Reset the "changed" state to FALSE */ + composer->has_changed = FALSE; } #define AUTOSAVE_SEED ".evolution-composer.autosave-XXXXXX" @@ -1296,7 +1299,7 @@ exit_dialog_cb (int reply, EMsgComposer *composer) switch (reply) { case REPLY_YES: /* this has to be done async */ - save_draft(composer, TRUE); + save_draft (composer, TRUE); break; case REPLY_NO: gtk_widget_destroy (GTK_WIDGET (composer)); -- cgit