Commit 5a3481b8 authored by William Jon McCann's avatar William Jon McCann

Don't crash when checking for recent: in multi file properties

parent bcc67ddf
......@@ -2474,8 +2474,10 @@ location_show_original (NautilusPropertiesWindow *window)
NautilusFile *file;
file = get_original_file (window);
return !nautilus_file_is_in_recent (file);
/* there is no way a recent item will be mixed with
other items so just pick the first file to check */
file = NAUTILUS_FILE (g_list_nth_data (window->details->original_files, 0));
return (file != NULL && !nautilus_file_is_in_recent (file));
static gboolean
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment