summaryrefslogtreecommitdiffstats
path: root/src/index.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-01-25 21:11:43 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-01-25 21:11:43 (GMT)
commitc7d553e78d5c3efdecb3f44a63f4f68e83eae61a (patch)
tree5e3ff29c80e73d69c88e8b33d670753c31eed4b2 /src/index.cpp
parentee63f0e064142addc300e0411b141d2697b73500 (diff)
downloadDoxygen-c7d553e78d5c3efdecb3f44a63f4f68e83eae61a.zip
Doxygen-c7d553e78d5c3efdecb3f44a63f4f68e83eae61a.tar.gz
Doxygen-c7d553e78d5c3efdecb3f44a63f4f68e83eae61a.tar.bz2
Release-1.3.5-20040125
Diffstat (limited to 'src/index.cpp')
-rw-r--r--src/index.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/index.cpp b/src/index.cpp
index 9a4966b..fa080ac 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -3018,6 +3018,16 @@ void writeGroupIndex(OutputList &ol)
//----------------------------------------------------------------------------
+static bool mainPageHasTitle()
+{
+ if (Doxygen::mainPage==0) return FALSE;
+ if (Doxygen::mainPage->title().isEmpty()) return FALSE;
+ if (Doxygen::mainPage->title().lower()=="notitle") return FALSE;
+ return TRUE;
+}
+
+//----------------------------------------------------------------------------
+
void writeIndex(OutputList &ol)
{
// save old generator state
@@ -3040,11 +3050,11 @@ void writeIndex(OutputList &ol)
Doxygen::mainPage ? Doxygen::mainPage->getDefLine() : 1;
QCString title;
- if (!Doxygen::mainPage || Doxygen::mainPage->title().isEmpty())
+ if (!mainPageHasTitle())
{
title = theTranslator->trMainPage();
}
- else if (Doxygen::mainPage)
+ else
{
title = substitute(Doxygen::mainPage->title(),"%","");
}
@@ -3149,7 +3159,7 @@ void writeIndex(OutputList &ol)
if (Doxygen::mainPage)
{
ol.startIndexSection(isMainPage);
- if (!Doxygen::mainPage->title().isEmpty())
+ if (mainPageHasTitle())
{
ol.parseDoc(defFileName,defLine,Doxygen::mainPage,0,Doxygen::mainPage->title(),FALSE,FALSE);
}