forked from qt-creator/qt-creator
		
	qmljs: add qrc files that are not resources without warnings
Change-Id: I2e768b6f14c0099769cb8a4b13052c7f0b8f88a9 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
		| @@ -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; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user