From f3b534e5cdbcf7ed1bdd0dc3c258d26a8a3a87ab Mon Sep 17 00:00:00 2001 From: kh Date: Mon, 15 Jun 2009 12:00:45 +0200 Subject: We only need to filename, not the full path. Reviewed-by: kh --- tools/assistant/lib/qhelpgenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/assistant/lib/qhelpgenerator.cpp b/tools/assistant/lib/qhelpgenerator.cpp index 8512adb..64d9f19 100644 --- a/tools/assistant/lib/qhelpgenerator.cpp +++ b/tools/assistant/lib/qhelpgenerator.cpp @@ -533,7 +533,7 @@ bool QHelpGenerator::insertFiles(const QStringList &files, const QString &rootPa stream.setCodec(QTextCodec::codecForName(charSet.toLatin1().constData())); title = QHelpGlobal::documentTitle(stream.readAll()); } else { - title = fi.fileName(); + title = fileName.mid(fileName.lastIndexOf(QLatin1Char('/')) + 1); } int fileId = -1; -- cgit v0.12