diff options
Diffstat (limited to 'src/tagreader.cpp')
-rw-r--r-- | src/tagreader.cpp | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/tagreader.cpp b/src/tagreader.cpp index b4fc9ed..23b8f13 100644 --- a/src/tagreader.cpp +++ b/src/tagreader.cpp @@ -1431,19 +1431,16 @@ void TagFileParser::buildLists(Entry *root) TagPageInfo *tpi; for (pgit.toFirst();(tpi=pgit.current());++pgit) { - if (tpi->filename!="index") // skip mainpage, there can be only one (see bug734727) - { - Entry *pe = new Entry; - pe->section = Entry::PAGEDOC_SEC; - pe->name = tpi->name; - pe->args = tpi->title; - addDocAnchors(pe,tpi->docAnchors); - TagInfo *ti = new TagInfo; - ti->tagName = m_tagName; - ti->fileName = tpi->filename; - pe->tagInfo = ti; - root->addSubEntry(pe); - } + Entry *pe = new Entry; + pe->section = tpi->filename=="index" ? Entry::MAINPAGEDOC_SEC : Entry::PAGEDOC_SEC; + pe->name = tpi->name; + pe->args = tpi->title; + addDocAnchors(pe,tpi->docAnchors); + TagInfo *ti = new TagInfo; + ti->tagName = m_tagName; + ti->fileName = tpi->filename; + pe->tagInfo = ti; + root->addSubEntry(pe); } } |