Skip to content

open-selector: Fix crash introduced in GDateTime port

Ray Strode requested to merge fix-open-crash into master

commit acf14cc0 moved FileItems over to using GDateTime instead of GTimeVal.

This reduced code complexity pretty nicely, but it unfortunately introduced a bug, where the sort_items_by_mru function was treating the FileItems themselves as GDateTime objects. That bug causes a crash when opening files.

This commit fixes the problem by using the ->accessed members instead of the file items themselves.

Closes: #465 (closed)

Merge request reports