diff options
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 072ebc7f8f..544adb9f5c 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1148,7 +1148,7 @@ autosave_manager_query_load_orphans (AutosaveManager *am, EMsgComposer *composer if (!dir) { return; } - + while ((d = readdir (dir))) { if ((!strncmp (d->d_name, AUTOSAVE_SEED, len - 6)) && (strlen (d->d_name) == len) @@ -1169,6 +1169,8 @@ autosave_manager_query_load_orphans (AutosaveManager *am, EMsgComposer *composer } } + closedir (dir); + if (match != NULL) { dialog = gnome_question_dialog_parented (_("Evolution has found unsaved files from a previous session.\n" "Would you like to attempt recovery?"), |