From 7c9645a1763f4c545b4496df73fb5d8a6fc5c5e6 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 4 Apr 2003 18:25:52 +0000 Subject: If the composer isn't 'dirty', then don't autosave the draft (no need to). 2003-04-04 Jeffrey Stedfast * e-msg-composer.c (autosave_save_draft): If the composer isn't 'dirty', then don't autosave the draft (no need to). Fixes bug #40764. svn path=/trunk/; revision=20671 --- composer/ChangeLog | 6 ++++++ composer/e-msg-composer.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/composer/ChangeLog b/composer/ChangeLog index 5994efe371..eb439600da 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,9 @@ +2003-04-04 Jeffrey Stedfast + + * e-msg-composer.c (autosave_save_draft): If the composer isn't + 'dirty', then don't autosave the draft (no need to). Fixes bug + #40764. + 2003-04-03 Jeffrey Stedfast * e-msg-composer.c (menu_edit_select_all_cb): Add a select-all diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index d0c7be062a..aab14e230a 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1240,6 +1240,9 @@ autosave_save_draft (EMsgComposer *composer) int fd, camelfd; gboolean success = TRUE; + if (!e_msg_composer_is_dirty (composer)) + return TRUE; + fd = composer->autosave_fd; file = composer->autosave_file; -- cgit