Commit 4d5ddf77 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 720092 - USE_MDFILE_AS_MAINPAGE doesn't work if full path is specified.

parent c5ae1978
......@@ -2294,7 +2294,11 @@ void MarkdownFileParser::parseInput(const char *fileName,
static QCString mdfileAsMainPage = Config_getString("USE_MDFILE_AS_MAINPAGE");
if (id.isEmpty()) id = markdownFileNameToId(fileName);
if (title.isEmpty()) title = titleFn;
if (fn==mdfileAsMainPage)
if (!mdfileAsMainPage.isEmpty() &&
(fn==mdfileAsMainPage || // name reference
QFileInfo(fileName).absFilePath()==
QFileInfo(mdfileAsMainPage).absFilePath()) // file reference with path
)
{
docs.prepend("@mainpage\n");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment