summaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-03-25 08:37:42 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2010-03-25 08:37:42 +0100
commit4e84bc4b78603e5f5b9f85d8b0dff93b8886f17b (patch)
tree88cf4a162a4acd9007aad33dd0f5ed95ccd19ceb /src/index.c
parent5ca513aea73d041dd3d45c7b02c310fc7bcb8cec (diff)
Actually detect an empty filelist
This fixes imlib2 warnings (and occasional X errors/segfaults), which used to occur when all files in feh's filelist were suddenly deleted by an external application. Now, feh simply quits with "No more slides in show" (which makes more sense, IMHO).
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c
index 5c13d19..c7c0a84 100644
--- a/src/index.c
+++ b/src/index.c
@@ -306,7 +306,6 @@ void init_index_mode(void)
file = FEH_FILE(l->data);
if (last) {
filelist = feh_file_remove_from_list(filelist, last);
- filelist_len--;
last = NULL;
}
D(4, ("About to load image %s\n", file->filename));