summaryrefslogtreecommitdiffstats
path: root/tools/assistant/lib
diff options
context:
space:
mode:
authorck <qt-info@nokia.com>2010-07-09 09:16:28 (GMT)
committerck <qt-info@nokia.com>2010-07-09 09:16:28 (GMT)
commit7787b548907add8b7c2ac642d161181070050ea4 (patch)
tree4f50844d3dd50043b66dfe0e1e3db5b615e85108 /tools/assistant/lib
parentc69dc51e5e03aaa87a9385f5557a4f6b8aaeded3 (diff)
downloadQt-7787b548907add8b7c2ac642d161181070050ea4.zip
Qt-7787b548907add8b7c2ac642d161181070050ea4.tar.gz
Qt-7787b548907add8b7c2ac642d161181070050ea4.tar.bz2
qhelpgenerator: Fix namespace syntax checking.
Diffstat (limited to 'tools/assistant/lib')
-rw-r--r--tools/assistant/lib/qhelpprojectdata.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/assistant/lib/qhelpprojectdata.cpp b/tools/assistant/lib/qhelpprojectdata.cpp
index b0faf0c..5247847 100644
--- a/tools/assistant/lib/qhelpprojectdata.cpp
+++ b/tools/assistant/lib/qhelpprojectdata.cpp
@@ -327,10 +327,12 @@ bool QHelpProjectDataPrivate::hasValidSyntax(const QString &nameSpace,
QUrl url;
const QLatin1String scheme("qthelp");
url.setScheme(scheme);
- url.setHost(nameSpace);
+ const QString canonicalNamespace = nameSpace.toLower();
+ url.setHost(canonicalNamespace);
url.setPath(vFolder);
- const QString expectedUrl(scheme + QLatin1String("://") + nameSpace + slash + vFolder);
+ const QString expectedUrl(scheme + QLatin1String("://")
+ + canonicalNamespace + slash + vFolder);
return url.isValid() && url.toString() == expectedUrl;
}