Adapt to QUrl changes: URL with authority must have paths with /
authorThiago Macieira <thiago.macieira@intel.com>
Fri, 5 Oct 2012 16:08:31 +0000 (09:08 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 8 Oct 2012 00:46:50 +0000 (02:46 +0200)
Otherwise, QUrl considers the URL as invalid.

Change-Id: Idc33210ce75813ff8420da6efb7baf5511d43054
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
src/assistant/help/qhelpprojectdata.cpp

index 9a4332e..7d8cdd0 100644 (file)
@@ -329,7 +329,7 @@ bool QHelpProjectDataPrivate::hasValidSyntax(const QString &nameSpace,
     url.setScheme(scheme);
     const QString canonicalNamespace = nameSpace.toLower();
     url.setHost(canonicalNamespace);
-    url.setPath(vFolder);
+    url.setPath(slash + vFolder);
 
     const QString expectedUrl(scheme + QLatin1String("://")
         + canonicalNamespace + slash + vFolder);