aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2021-11-20 13:18:05 +0100
committerPřemysl Eric Janouch <p@janouch.name>2021-11-20 13:18:31 +0100
commit09547184c3608d88da1cc4e82b3e7d776c99b834 (patch)
tree4ff5b8db861e1e649836b655c2c0ff25f7db0047
parent2b8350ecebec5cca5edd25951bdb3f0c0b8ee4b5 (diff)
downloadfiv-09547184c3608d88da1cc4e82b3e7d776c99b834.tar.gz
fiv-09547184c3608d88da1cc4e82b3e7d776c99b834.tar.xz
fiv-09547184c3608d88da1cc4e82b3e7d776c99b834.zip
Fix an embarrassing crash on directory change
-rw-r--r--fastiv-browser.c1
1 files changed, 1 insertions, 0 deletions
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);