Fix mimetype filtering (indexedmimetypes/excludedmimetypes) not working for embedded documents

This commit is contained in:
Jean-Francois Dockes 2017-01-13 09:18:18 +01:00
parent ae61973ee0
commit 5bbef7fc98
2 changed files with 2 additions and 2 deletions

View file

@ -671,7 +671,7 @@ int FileInterner::addHandler()
return ADD_CONTINUE;
}
RecollFilter *newflt = getMimeHandler(mimetype, m_cfg);
RecollFilter *newflt = getMimeHandler(mimetype, m_cfg, !m_forPreview);
if (!newflt) {
// If we can't find a handler, this doc can't be handled
// but there can be other ones so we go on

View file

@ -160,7 +160,7 @@ protected:
* indexedmimetypes (if this is set at all).
*/
extern RecollFilter *getMimeHandler(const std::string &mtyp, RclConfig *cfg,
bool filtertypes=false);
bool filtertypes);
/// Free up filter for reuse (you can also delete it)
extern void returnMimeHandler(RecollFilter *);