git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28388
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- m_IndexList->SetSelection(0);
- DisplayIndexItem(&index[i]);
+ // don't automatically show topic selector if this
+ // item points to multiple pages:
+ if (index[i].items.size() == 1)
+ {
+ m_IndexList->SetSelection(0);
+ DisplayIndexItem(&index[i]);
+ }
}
// if this is nested item of the index, show its parent(s)
}
// if this is nested item of the index, show its parent(s)
m_IndexList->Append(index[i].name, (char*)(&index[i]));
if (first)
{
m_IndexList->Append(index[i].name, (char*)(&index[i]));
if (first)
{
- DisplayIndexItem(&index[i]);
+ // don't automatically show topic selector if this
+ // item points to multiple pages:
+ if (index[i].items.size() == 1)
+ {
+ DisplayIndexItem(&index[i]);
+ }