Thumbnails: need to url_encode the source path before hashing for thumbnail name

This commit is contained in:
Jean-Francois Dockes
2012-04-08 19:13:18 +02:00
parent b8372b6788
commit 29ef5bd143
2 changed files with 69 additions and 14 deletions
+7
View File
@@ -231,9 +231,16 @@ string QtGuiResListPager::iconUrl(RclConfig *config, Rcl::Doc& doc)
ConfIndexer::docsToPaths(docs, paths);
if (!paths.empty()) {
string path;
LOGDEB2(("ResList::iconUrl: source path [%s]\n", paths[0].c_str()));
if (thumbPathForUrl(cstr_fileu + paths[0], 128, path)) {
LOGDEB2(("ResList::iconUrl: icon path [%s]\n", path.c_str()));
return cstr_fileu + path;
} else {
LOGDEB2(("ResList::iconUrl: no icon: path [%s]\n",
path.c_str()));
}
} else {
LOGDEB(("ResList::iconUrl: docsToPaths failed\n"));
}
}
return ResListPager::iconUrl(config, doc);