summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorck <qt-info@nokia.com>2010-01-21 14:58:41 (GMT)
committerck <qt-info@nokia.com>2010-01-21 15:02:19 (GMT)
commit39ddaa4e2c1396dfbf66574cc60ee784fddfdde2 (patch)
treec3c324b72e2cc97199a3eb432e306b26cf97cb6f /tools
parent2ae6b44e4242c60bd882661e104bb53fa6670556 (diff)
downloadQt-39ddaa4e2c1396dfbf66574cc60ee784fddfdde2.zip
Qt-39ddaa4e2c1396dfbf66574cc60ee784fddfdde2.tar.gz
Qt-39ddaa4e2c1396dfbf66574cc60ee784fddfdde2.tar.bz2
Assistant: Set correct mime type for text documents.
Task-number: QTBUG-6796 Reviewed-by: kh1
Diffstat (limited to 'tools')
-rw-r--r--tools/assistant/tools/assistant/helpviewer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/assistant/tools/assistant/helpviewer.cpp b/tools/assistant/tools/assistant/helpviewer.cpp
index 1900c7e..be6245a 100644
--- a/tools/assistant/tools/assistant/helpviewer.cpp
+++ b/tools/assistant/tools/assistant/helpviewer.cpp
@@ -141,12 +141,12 @@ QNetworkReply *HelpNetworkAccessManager::createRequest(Operation /*op*/,
if (mimeType.endsWith(QLatin1String(".svg"))
|| mimeType.endsWith(QLatin1String(".svgz"))) {
mimeType = QLatin1String("image/svg+xml");
- }
- else if (mimeType.endsWith(QLatin1String(".css"))) {
+ } else if (mimeType.endsWith(QLatin1String(".css"))) {
mimeType = QLatin1String("text/css");
- }
- else if (mimeType.endsWith(QLatin1String(".js"))) {
+ } else if (mimeType.endsWith(QLatin1String(".js"))) {
mimeType = QLatin1String("text/javascript");
+ } else if (mimeType.endsWith(QLatin1String(".txt"))) {
+ mimeType = QLatin1String("text/plain");
} else {
mimeType = QLatin1String("text/html");
}