dont clobber utf8fn from filter
This commit is contained in:
parent
6b24b19b5f
commit
4e173617d6
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: indexer.cpp,v 1.47 2006-12-15 16:33:15 dockes Exp $ (C) 2004 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: indexer.cpp,v 1.48 2006-12-16 15:30:32 dockes Exp $ (C) 2004 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -398,8 +398,11 @@ DbIndexer::processone(const std::string &fn, const struct stat *stp,
|
|||||||
hadNullIpath = true;
|
hadNullIpath = true;
|
||||||
else
|
else
|
||||||
doc.ipath = ipath;
|
doc.ipath = ipath;
|
||||||
|
|
||||||
doc.utf8fn = utf8fn;
|
// Note that the filter may have its own idea of the file name
|
||||||
|
// (ie: mail attachment)
|
||||||
|
if (doc.utf8fn.empty())
|
||||||
|
doc.utf8fn = utf8fn;
|
||||||
|
|
||||||
// Add document to database
|
// Add document to database
|
||||||
if (!m_db.add(fn, doc, stp))
|
if (!m_db.add(fn, doc, stp))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user