aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
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;