Skip to content

list-base: Fix get_first_visible_item()

nautilus-list-base.c: scroll_to_file_on_idle() tries to get the item from the model based on the file URI, but it can't find it, and after that it tries to scroll to the NULL item which crashes the application.

I have fixed it by checking if the item pointer has a NULL value before scrolling to the item.

Fixes #2532 (closed)

Edited by Aleksandar Dezelin

Merge request reports