diff options
Diffstat (limited to 'src/nautilus-files-view.c')
-rw-r--r-- | src/nautilus-files-view.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c index abc9a39b7..adce3f519 100644 --- a/src/nautilus-files-view.c +++ b/src/nautilus-files-view.c @@ -4341,6 +4341,11 @@ process_old_files (NautilusFilesView *view) for (GList *node = files_added; node != NULL; node = node->next) { pending = node->data; + if (nautilus_file_is_gone (pending->file)) + { + g_warning ("Attempted to add a non-existent file to the view."); + continue; + } pending_additions = g_list_prepend (pending_additions, pending->file); /* Acknowledge the files that were pending to be revealed */ if (g_hash_table_contains (priv->pending_reveal, pending->file)) |