diff -ru doxygen-1.8.2-orig/src/qhp.cpp doxygen-1.8.2/src/qhp.cpp
--- doxygen-1.8.2-orig/src/qhp.cpp	2012-09-11 20:03:16.244396856 -0400
+++ doxygen-1.8.2/src/qhp.cpp	2012-09-11 20:03:52.836550092 -0400
@@ -124,9 +124,10 @@
 
   // Add extra root node
   QCString fullProjectname = getFullProjectName();
+  const QCString refFileName = QCString("index")+Doxygen::htmlFileExtension;
   const char * const attributes[] =
   { "title", fullProjectname,
-    "ref",   QCString("index")+Doxygen::htmlFileExtension,
+    "ref",   refFileName,
     NULL
   };
   m_toc.open("section", attributes);
