Commit 6f32b422 authored by Cosimo Cecchi's avatar Cosimo Cecchi

list-view: don't crash when expanding a directory

We need to check for file != NULL, which is true in the case we just
started expanding the directory.
parent 3a6053f1
......@@ -1774,6 +1774,13 @@ location_cell_data_func (GtkTreeViewColumn *column,
NAUTILUS_LIST_MODEL_FILE_COLUMN, &file,
-1);
/* The file might be NULL if we just toggled an expander
* and we're still loading the subdirectory.
*/
if (file == NULL) {
return;
}
if (show_trash_orig && nautilus_file_is_in_trash (file)) {
NautilusFile *orig_file;
......
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