From 01575a22ea2d2e54ef1748733929243ca024234b Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Mon, 1 Aug 2016 15:57:53 +0200 Subject: Fix interaction of files selectors with disk caching Make sure to save the .qmlc/.jsc files to the location determined by the file selectors. Change-Id: If535bb1e4f0d20ac692b3d8e6d563f77cd00446b Reviewed-by: Ulf Hermann --- src/qml/qml/qqmltypeloader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/qml/qml/qqmltypeloader.cpp') diff --git a/src/qml/qml/qqmltypeloader.cpp b/src/qml/qml/qqmltypeloader.cpp index 538e630e98..0e1f9572e0 100644 --- a/src/qml/qml/qqmltypeloader.cpp +++ b/src/qml/qml/qqmltypeloader.cpp @@ -2510,7 +2510,7 @@ void QQmlTypeData::compile(const QQmlRefPointer &importCache, } if (diskCache() || forceDiskCacheRefresh()) { QString errorString; - if (!m_compiledData->saveToDisk(&errorString)) { + if (!m_compiledData->saveToDisk(url(), &errorString)) { qCDebug(DBG_DISK_CACHE) << "Error saving cached version of" << m_compiledData->url().toString() << "to disk:" << errorString; } } @@ -2944,7 +2944,7 @@ void QQmlScriptBlob::dataReceived(const Data &data) if (diskCache() || forceDiskCacheRefresh()) { QString errorString; - if (!unit->saveToDisk(&errorString)) { + if (!unit->saveToDisk(url(), &errorString)) { qCDebug(DBG_DISK_CACHE()) << "Error saving cached version of" << unit->url().toString() << "to disk:" << errorString; } } -- cgit v1.2.3