summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ftvhelp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp
index 7ef38c8..24e3fbb 100644
--- a/src/ftvhelp.cpp
+++ b/src/ftvhelp.cpp
@@ -701,7 +701,7 @@ static void generateJSNavTree(const std::vector<FTVNode*> &nodeList)
// write the navigation index (and sub-indices)
std::sort(navIndex.begin(),navIndex.end(),[](const auto &n1,const auto &n2)
- { return qstrcmp(n1.url,n2.url)<0; });
+ { return !n1.url.isEmpty() && (n2.url.isEmpty() || qstrcmp(n1.url,n2.url)<0); });
int subIndex=0;
int elemCount=0;