Better fix for issue #25

This commit is contained in:
Bert Münnich
2011-11-01 08:36:20 +01:00
parent 964bf133bb
commit 71a7940d74
3 changed files with 7 additions and 7 deletions

7
main.c
View File

@ -416,10 +416,13 @@ void run(void) {
{
/* load thumbnails */
set_timeout(redraw, TO_REDRAW_THUMBS, false);
if (tns_load(&tns, tns.cnt, &files[tns.cnt], false, false))
if (tns_load(&tns, tns.cnt, &files[tns.cnt], false, false)) {
tns.cnt++;
else
} else {
remove_file(tns.cnt, false);
if (tns.sel >= tns.cnt)
tns.sel--;
}
if (tns.cnt == filecnt)
redraw();
else