From ae962ae4a4dd46f4730982f97110cbf3d2aef397 Mon Sep 17 00:00:00 2001
From: Dimitri van Heesch <dimitri@stack.nl>
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

