forked from e16/e16
1
0
Fork 0

Fix bug causing bogus image cache directory files to be written.

SVN revision: 43062
This commit is contained in:
Kim Woelders 2009-10-13 19:20:22 +00:00
parent 02a82cf6f3
commit 3b51bcd980
1 changed files with 3 additions and 2 deletions

View File

@ -111,11 +111,12 @@ MenuLoadFromDirectory(Menu * m)
if (stat(dir, &st) < 0)
return 1;
Esnprintf(cs, sizeof(cs), "%s/cached/img/%s",
EDirUserCache(), _dircache_filename(ss, sizeof(ss), &st));
if (Mode.backgrounds.force_scan)
goto skip_dir_cache;
Esnprintf(cs, sizeof(cs), "%s/cached/img/%s",
EDirUserCache(), _dircache_filename(ss, sizeof(ss), &st));
if (exists(cs))
{
/* cached dir listing - use it */