diff options
author | BogDan Vatra <bogdan@kdab.com> | 2018-02-13 12:13:22 +0200 |
---|---|---|
committer | BogDan Vatra <bogdan@kdab.com> | 2018-02-13 16:28:19 +0000 |
commit | 8342f0b9b806beab03f5a74f3e3957f12a52125a (patch) | |
tree | 4d5553d5a2084ceca883e106c19fa3b32141a10b | |
parent | fc333db8f9ea17f8cb1f080f3a6755ea363b087a (diff) |
Use only cache path to cache .qmlc files on Android
Task-number: QTBUG-58223
Change-Id: Ibc599ac2e62aa60405af0022c7f5bab6eac3e3c4
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
(cherry picked from commit ff08272245c099cadd433c8b5d4f98301f5e585b)
-rw-r--r-- | src/qml/compiler/qv4compileddata.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4compileddata.cpp b/src/qml/compiler/qv4compileddata.cpp index 7735cd03d8..48fb351adb 100644 --- a/src/qml/compiler/qv4compileddata.cpp +++ b/src/qml/compiler/qv4compileddata.cpp @@ -84,8 +84,10 @@ static QString cacheFilePath(const QUrl &url) { const QString localSourcePath = QQmlFile::urlToLocalFileOrQrc(url); const QString localCachePath = localSourcePath + QLatin1Char('c'); +#ifndef Q_OS_ANDROID if (QFile::exists(localCachePath) || QFileInfo(QFileInfo(localSourcePath).dir().absolutePath()).isWritable()) return localCachePath; +#endif QCryptographicHash fileNameHash(QCryptographicHash::Sha1); fileNameHash.addData(localSourcePath.toUtf8()); QString directory = QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + QLatin1String("/qmlcache/"); |