summaryrefslogtreecommitdiffstats
path: root/src/index.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.cpp')
-rw-r--r--src/index.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/index.cpp b/src/index.cpp
index 6ed094a..75edfdd 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -1534,10 +1534,21 @@ void writeIndex(OutputList &ol)
int defLine =
mainPage ? mainPage->defLine : 1;
+ QCString title;
if (!mainPage || mainPage->title.isEmpty())
- ol.startFile("index","Main Index",FALSE);
+ {
+ title = "Main Index";
+ }
else
- ol.startFile("index",mainPage->title,FALSE);
+ {
+ title = mainPage->title;
+ }
+ ol.startFile("index",title,FALSE);
+
+ if (Config::generateHtml && Config::htmlHelpFlag)
+ {
+ HtmlHelp::getInstance()->addContentsItem(title,"index");
+ }
if (!Config::noIndexFlag) writeQuickLinks(ol,TRUE);
ol.startTitleHead(0);