aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog2
-rw-r--r--composer/e-msg-composer.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index f4b312f00e..89efea4808 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -3,6 +3,8 @@
* e-msg-composer.c (autosave_manager_new): add missing static.
(best_encoding): make sure we don't try to call iconv_open with a
NULL tocode.
+ (autosave_manager_query_load_orphans): remove zero length orphans
+ so that they don't clutter things up.
2001-07-06 Jeffrey Stedfast <fejj@ximian.com>
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 0a72137a24..7447f9db0e 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1156,9 +1156,11 @@ autosave_manager_query_load_orphans (AutosaveManager *am, EMsgComposer *composer
* check if the file has any length, It is a valid case if it doesn't
* so we simply don't ask then.
*/
- if (stat (filename, &st) < 0 || st.st_size == 0)
+ if (stat (filename, &st) < 0 || st.st_size == 0) {
+ unlink (filename);
continue;
-
+ }
+
dialog = gnome_ok_cancel_dialog_parented (_("Evolution has detected an editor buffer from a previous session.\n"
"Would you like to recover this buffer?"),
autosave_query_cb, &ok, GTK_WINDOW (composer));