Commit 82a2d53e authored by Alexandru Pandelea's avatar Alexandru Pandelea

files-view: fix crash on enter in search

Pressing enter with no selection while in search makes Nautilus

The problem is that Nautilus will try to access the first element
of a list that is NULL.

To avoid this, make sure that the list is not NULL.
parent 1d0d8e7c
......@@ -1136,6 +1136,11 @@ nautilus_files_view_activate_files (NautilusFilesView *view,
GList *files_to_activate;
char *path;
if (files == NULL)
files_to_extract = nautilus_file_list_filter (files,
(NautilusFileFilterFunc) nautilus_mime_file_extracts,
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