aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-04-05 02:25:52 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-04-05 02:25:52 +0800
commit7c9645a1763f4c545b4496df73fb5d8a6fc5c5e6 (patch)
treeb66bdc9ae0153568bd07c76701cd64fa715580b5 /composer/e-msg-composer.c
parentcd868fb9e93ff773dd2ab406770117f55b6b4dd8 (diff)
downloadgsoc2013-evolution-7c9645a1763f4c545b4496df73fb5d8a6fc5c5e6.tar.gz
gsoc2013-evolution-7c9645a1763f4c545b4496df73fb5d8a6fc5c5e6.tar.zst
gsoc2013-evolution-7c9645a1763f4c545b4496df73fb5d8a6fc5c5e6.zip
If the composer isn't 'dirty', then don't autosave the draft (no need to).
2003-04-04 Jeffrey Stedfast <fejj@ximian.com> * 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
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c3
1 files changed, 3 insertions, 0 deletions
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;