Don't check for .jpg, .cust, .cust16 files in cache/images folder, #4904

This commit is contained in:
heckflosse
2018-10-31 20:52:16 +01:00
parent 473e4bc236
commit bfe2ce7fe1
2 changed files with 1 additions and 12 deletions

View File

@@ -899,12 +899,7 @@ void Thumbnail::_saveThumbnail ()
return;
}
if (g_remove (getCacheFileName ("images", ".rtti").c_str ()) != 0) {
// No file deleted, so we try to deleted obsolete files, if any
g_remove (getCacheFileName ("images", ".cust").c_str ());
g_remove (getCacheFileName ("images", ".cust16").c_str ());
g_remove (getCacheFileName ("images", ".jpg").c_str ());
}
g_remove (getCacheFileName ("images", ".rtti").c_str ()) != 0);
// save thumbnail image
tpp->writeImage (getCacheFileName ("images", ""));