From 09547184c3608d88da1cc4e82b3e7d776c99b834 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sat, 20 Nov 2021 13:18:05 +0100 Subject: Fix an embarrassing crash on directory change --- fastiv-browser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fastiv-browser.c b/fastiv-browser.c index 95119dc..64c9438 100644 --- a/fastiv-browser.c +++ b/fastiv-browser.c @@ -639,6 +639,7 @@ void fastiv_browser_load(FastivBrowser *self, const char *path) { g_array_set_size(self->entries, 0); + g_array_set_size(self->layouted_rows, 0); // TODO(p): Use opendir(), in order to get file type directly. GDir *dir = g_dir_open(path, 0, NULL); -- cgit v1.2.3-70-g09d2