diff options
author | Larry Ewing <lewing@ximian.com> | 2001-07-07 06:43:36 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2001-07-07 06:43:36 +0800 |
commit | 85bb331cb766ea520b4ca36ec71701cf2da0b1d8 (patch) | |
tree | 183902b75b90abeea5222a68769c0906bbcb1315 /composer/e-msg-composer.c | |
parent | b1279f80c667fd2304fee2a8ed66c3e038722dfd (diff) | |
download | gsoc2013-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/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 6 |
1 files changed, 4 insertions, 2 deletions
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)); |