Fix recreation of thumbnail cache file after manual reload
This commit is contained in:
parent
7177270c10
commit
b410c022a8
4
Makefile
4
Makefile
@ -1,4 +1,4 @@
|
|||||||
VERSION = git-20120212
|
VERSION = git-20120214
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -ansi -Wall -pedantic -O2
|
CFLAGS = -ansi -Wall -pedantic -O2
|
||||||
@ -8,7 +8,7 @@ LIBS = -lX11 -lImlib2 -lgif
|
|||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
MANPREFIX = $(PREFIX)/share/man
|
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)
|
OBJ = $(SRC:.c=.o)
|
||||||
|
|
||||||
all: options sxiv
|
all: options sxiv
|
||||||
|
2
thumbs.c
2
thumbs.c
@ -271,7 +271,7 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file,
|
|||||||
imlib_free_image_and_decache();
|
imlib_free_image_and_decache();
|
||||||
|
|
||||||
if (use_cache && !cache_hit)
|
if (use_cache && !cache_hit)
|
||||||
tns_cache_write(t, false);
|
tns_cache_write(t, true);
|
||||||
|
|
||||||
tns->dirty = true;
|
tns->dirty = true;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user