Fix an embarrassing crash on directory change

This commit is contained in:
Přemysl Eric Janouch 2021-11-20 13:18:05 +01:00
parent 2b8350eceb
commit 09547184c3
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -639,6 +639,7 @@ void
fastiv_browser_load(FastivBrowser *self, const char *path) fastiv_browser_load(FastivBrowser *self, const char *path)
{ {
g_array_set_size(self->entries, 0); 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. // TODO(p): Use opendir(), in order to get file type directly.
GDir *dir = g_dir_open(path, 0, NULL); GDir *dir = g_dir_open(path, 0, NULL);