Dont store filename in empty title at index time, to keep choice at display time. Define %t as title in addition to %T as title or filename

This commit is contained in:
Jean-Francois Dockes
2012-03-10 14:45:40 +01:00
parent ab13efdc9c
commit 07813ab6ba
2 changed files with 11 additions and 5 deletions
-2
View File
@@ -1278,8 +1278,6 @@ bool Db::addOrUpdate(const string &udi, const string &parent_udi,
if (!doc.ipath.empty())
RECORD_APPEND(record, Doc::keyipt, doc.ipath);
if (doc.meta[Doc::keytt].empty())
doc.meta[Doc::keytt] = doc.utf8fn;
doc.meta[Doc::keytt] =
neutchars(truncate_to_word(doc.meta[Doc::keytt], 150), cstr_nc);
if (!doc.meta[Doc::keytt].empty())