summaryrefslogtreecommitdiffstats
path: root/src/network/access/qfilenetworkreply.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-09-22 14:41:54 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-09-22 14:41:54 (GMT)
commitbb878bb1ee9a5272359e88d44806971e13c31486 (patch)
treeef823d980775448085d8f2130027a46cd08dafe8 /src/network/access/qfilenetworkreply.cpp
parentb7ba409b0dabd382876310a6c110a96cf0e3c6bf (diff)
parent42f7c123e95c6d9f1d0ece648f61defa79627ab8 (diff)
downloadQt-bb878bb1ee9a5272359e88d44806971e13c31486.zip
Qt-bb878bb1ee9a5272359e88d44806971e13c31486.tar.gz
Qt-bb878bb1ee9a5272359e88d44806971e13c31486.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1: We also don't need to watch for org.freedesktop.DBus changing owners Avoid adding match rules for NameAcquired and NameLost We don't need to add a match rule to receive messages targetted at us. Save the D-Bus's base service earlier. Pre-populate the watched services hash with org.freedesktop.DBus Quick performance optimisation: cache a QString with "org.freedesktop.DBus" XML schema internals: fix memory leak QNAM: Use QFileNetworkReply for qrc:/ URL schema Make the de-inlined isRightToLeft not get called from updateProperties Update the ICC mkspec: keep the stack aligned to 16-byte
Diffstat (limited to 'src/network/access/qfilenetworkreply.cpp')
-rw-r--r--src/network/access/qfilenetworkreply.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/network/access/qfilenetworkreply.cpp b/src/network/access/qfilenetworkreply.cpp
index 4ac9a8c..00bd29e 100644
--- a/src/network/access/qfilenetworkreply.cpp
+++ b/src/network/access/qfilenetworkreply.cpp
@@ -97,7 +97,10 @@ QFileNetworkReply::QFileNetworkReply(QObject *parent, const QNetworkRequest &req
QString fileName = url.toLocalFile();
if (fileName.isEmpty()) {
- fileName = url.toString(QUrl::RemoveAuthority | QUrl::RemoveFragment | QUrl::RemoveQuery);
+ if (url.scheme() == QLatin1String("qrc"))
+ fileName = QLatin1Char(':') + url.path();
+ else
+ fileName = url.toString(QUrl::RemoveAuthority | QUrl::RemoveFragment | QUrl::RemoveQuery);
}
QFileInfo fi(fileName);