Commit 317d9d50 authored by Fawzi Mohamed's avatar Fawzi Mohamed

qmljs: add qrc files that are not resources without warnings

Change-Id: I2e768b6f14c0099769cb8a4b13052c7f0b8f88a9
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent a1ea676c
......@@ -493,8 +493,9 @@ QrcParser::Ptr QrcCachePrivate::updatePath(const QString &path)
{
QMutexLocker l(&m_mutex);
QPair<QrcParser::Ptr,int> currentValue = m_cache.value(path, qMakePair(QrcParser::Ptr(0), 0));
QTC_CHECK(currentValue.second > 0);
currentValue.first = newParser;
if (currentValue.second == 0)
currentValue.second = 1; // add qrc files that are not in the resources of a project
m_cache.insert(path, currentValue);
return currentValue.first;
}
......
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