summaryrefslogtreecommitdiffstats
path: root/src/ftvhelp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ftvhelp.cpp')
-rw-r--r--src/ftvhelp.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp
index 73ac775..97bcdcc 100644
--- a/src/ftvhelp.cpp
+++ b/src/ftvhelp.cpp
@@ -657,7 +657,7 @@ static void generateJSNavTree(const QList<FTVNode> &nodeList)
QCString &projName = Config_getString(PROJECT_NAME);
if (projName.isEmpty())
{
- if (Doxygen::mainPage && !Doxygen::mainPage->title().isEmpty()) // Use title of main page as root
+ if (mainPageHasTitle()) // Use title of main page as root
{
t << "\"" << convertToJSString(Doxygen::mainPage->title()) << "\", ";
}
@@ -828,10 +828,13 @@ void FTVHelp::generateTreeViewInline(FTextStream &t)
}
//printf("preferred depth=%d\n",preferredDepth);
- t << "<table class=\"directory\">\n";
- int index=0;
- generateTree(t,m_indentNodes[0],0,preferredDepth,index);
- t << "</table>\n";
+ if (m_indentNodes[0].count())
+ {
+ t << "<table class=\"directory\">\n";
+ int index=0;
+ generateTree(t,m_indentNodes[0],0,preferredDepth,index);
+ t << "</table>\n";
+ }
t << "</div><!-- directory -->\n";
}