GNOME Bugzilla – Bug 684781
Mainpage sections are not shown as children in the treeview
Last modified: 2012-12-03 15:01:06 UTC
Considering /*! \mainpage Mainpage \section intro Introduction Text \section more More Info More Text */ and /*! \page my_page A Page \section page_intro Introduction Text \section page_more More Info More Text */ and a default doxygen configuration with GENERATE_TREEVIEW = YES, DISABLE_INDEX = YES the two section of the mainpage are not added as children to the tree while the children of the normal page are. The expected outcome is for the mainpage and page to behave in the same way.
Confirmed. Should be fixed in the next subversion update.
The recent update shows the sections in the treeview, but they are not correctly nested. This is due to checks for Doxygen::mainPage in Line 3306 and Line 3325 in index.cpp, when the mainpage has been given a name. It works fine when the page has been given a name. Replacing the checks with if ((hasSections || hasSubPages) && (pd!=Doxygen::mainPage || mainPageHasTitle())) fixes this.
Confirmed. I'll include your fix in the next subversion update.
Fixed now.