aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-07-07 06:43:36 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-07-07 06:43:36 +0800
commit85bb331cb766ea520b4ca36ec71701cf2da0b1d8 (patch)
tree183902b75b90abeea5222a68769c0906bbcb1315 /composer
parentb1279f80c667fd2304fee2a8ed66c3e038722dfd (diff)
downloadgsoc2013-evolution-85bb331cb766ea520b4ca36ec71701cf2da0b1d8.tar
gsoc2013-evolution-85bb331cb766ea520b4ca36ec71701cf2da0b1d8.tar.gz
gsoc2013-evolution-85bb331cb766ea520b4ca36ec71701cf2da0b1d8.tar.bz2
gsoc2013-evolution-85bb331cb766ea520b4ca36ec71701cf2da0b1d8.tar.lz
gsoc2013-evolution-85bb331cb766ea520b4ca36ec71701cf2da0b1d8.tar.xz
gsoc2013-evolution-85bb331cb766ea520b4ca36ec71701cf2da0b1d8.tar.zst
gsoc2013-evolution-85bb331cb766ea520b4ca36ec71701cf2da0b1d8.zip
(autosave_manager_query_load_orphans): remove zero length orphans so that
2001-07-06 Larry Ewing <lewing@ximian.com> (autosave_manager_query_load_orphans): remove zero length orphans so that they don't clutter things up. svn path=/trunk/; revision=10874
Diffstat (limited to 'composer')
-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));