From b410c022a881b98c69639dcca039863dea95de83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Tue, 14 Feb 2012 22:12:09 +0100 Subject: [PATCH] Fix recreation of thumbnail cache file after manual reload --- Makefile | 4 ++-- thumbs.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 01b9136..dc28163 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION = git-20120212 +VERSION = git-20120214 CC = gcc CFLAGS = -ansi -Wall -pedantic -O2 @@ -8,7 +8,7 @@ LIBS = -lX11 -lImlib2 -lgif PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man -SRC = commands.c image.c main.c options.c thumbs.c util.c window.c +SRC = commands.c exif.c image.c main.c options.c thumbs.c util.c window.c OBJ = $(SRC:.c=.o) all: options sxiv diff --git a/thumbs.c b/thumbs.c index 10b2fc8..31a1f89 100644 --- a/thumbs.c +++ b/thumbs.c @@ -271,7 +271,7 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file, imlib_free_image_and_decache(); if (use_cache && !cache_hit) - tns_cache_write(t, false); + tns_cache_write(t, true); tns->dirty = true; return true;