Commit df46a24a authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

Do not remove unexistent files from recent menu

The problem is that gtk_recent_info_exists() does a stat on the file to
check whether it exists, and thta causes a problem on locally mounted
remote or external file systems. So, I think it's better to have
unexitent files in the recent menu (which is unlikley) than slowing down
evince startup.

https://bugzilla.gnome.org/show_bug.cgi?id=674188
parent afb9799c
......@@ -2643,8 +2643,7 @@ ev_window_setup_recent (EvWindow *ev_window)
info = (GtkRecentInfo *) l->data;
if (!gtk_recent_info_has_application (info, evince) ||
(gtk_recent_info_is_local (info) && !gtk_recent_info_exists (info)))
if (!gtk_recent_info_has_application (info, evince))
continue;
action_name = g_strdup_printf ("RecentFile%u", i++);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment