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) ...@@ -2474,8 +2474,10 @@ location_show_original (NautilusPropertiesWindow *window)
{ {
NautilusFile *file; NautilusFile *file;
file = get_original_file (window); /* there is no way a recent item will be mixed with
return !nautilus_file_is_in_recent (file); 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 static gboolean
......
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