Commit f6d6db5b authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Thomas Hartmann

QmlDesigner.Rewriter: Clear the cache at every qml load

Already cached items from a possible wrong
environment(kit, default kit, ...) have to be cleared.

Change-Id: Ibd0643a8508b791aa22e0197f7bed6cc9c521066
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 0f382b7e
...@@ -862,7 +862,9 @@ void TextToModelMerger::setupUsedImports() ...@@ -862,7 +862,9 @@ void TextToModelMerger::setupUsedImports()
bool TextToModelMerger::load(const QString &data, DifferenceHandler &differenceHandler) bool TextToModelMerger::load(const QString &data, DifferenceHandler &differenceHandler)
{ {
// qDebug() << "TextToModelMerger::load with data:" << data; // maybe the project environment (kit, ...) changed, so we need to clean old caches
NodeMetaInfo::clearCache();
const QUrl url = m_rewriterView->model()->fileUrl(); const QUrl url = m_rewriterView->model()->fileUrl();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment