diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-16 16:43:27 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-16 16:43:27 (GMT) |
commit | 6800937b550ee2eb61869bcee411e514ec10ebac (patch) | |
tree | ffe361d1de131be6e8bb04cb4cec1f5d8afcdb6e /tools | |
parent | 090827712933e587eb9308aabca49fc01a371f0e (diff) | |
parent | 7ca8482115ab159b6fdea9fbff6839700dd8ee6e (diff) | |
download | Qt-6800937b550ee2eb61869bcee411e514ec10ebac.zip Qt-6800937b550ee2eb61869bcee411e514ec10ebac.tar.gz Qt-6800937b550ee2eb61869bcee411e514ec10ebac.tar.bz2 |
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/berlin-staging-1 into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/berlin-staging-1:
Fix broken image loading on windows.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/assistant/tools/assistant/helpviewer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/assistant/tools/assistant/helpviewer.cpp b/tools/assistant/tools/assistant/helpviewer.cpp index be6245a..f22ab8a 100644 --- a/tools/assistant/tools/assistant/helpviewer.cpp +++ b/tools/assistant/tools/assistant/helpviewer.cpp @@ -151,8 +151,9 @@ QNetworkReply *HelpNetworkAccessManager::createRequest(Operation /*op*/, mimeType = QLatin1String("text/html"); } - const QByteArray &ba = helpEngine->fileData(url); - return new HelpNetworkReply(request, ba.isEmpty() ? " " : ba, mimeType); + const QByteArray &data = helpEngine->findFile(url).isValid() + ? helpEngine->fileData(url) : QByteArray("File not found!"); + return new HelpNetworkReply(request, data, mimeType); } class HelpPage : public QWebPage |