From aa849afd11acf245033a5965a2c7c96b26db3bf0 Mon Sep 17 00:00:00 2001 From: dimitri Date: Thu, 12 Jul 2012 20:39:15 +0000 Subject: Fix to prevent .doc, .dox, and .txt files to appear in the index --- src/index.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/index.cpp b/src/index.cpp index 7053bb6..387aa54 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -784,9 +784,12 @@ static void writeDirHierarchy(OutputList &ol, FTVHelp* ftv,bool addToIndex) reference = fd->getReference(); outputBase = fd->getOutputFileBase(); } - ftv->addContentsItem(FALSE,fd->displayName(), - reference, outputBase, 0, - FALSE,FALSE,fd); + if (doc || src) + { + ftv->addContentsItem(FALSE,fd->displayName(), + reference, outputBase, 0, + FALSE,FALSE,fd); + } if (addToIndex) { if (doc) -- cgit v0.12