Commit a71b2840 authored by Kai Koehne's avatar Kai Koehne
Browse files

Don't assert when qml file is parsed for non-exising import path

Fixes a crash where the qml file was deregistered already because
of invalid qml.

Task-number: BAUHAUS-394
parent 40318eb6
...@@ -248,8 +248,7 @@ void SubComponentManagerPrivate::parseFile(const QString &filePath) ...@@ -248,8 +248,7 @@ void SubComponentManagerPrivate::parseFile(const QString &filePath)
return; return;
} }
QString dir = QFileInfo(filePath).dir().path(); QFileInfo dir = QFileInfo(filePath).absolutePath();
Q_ASSERT(m_dirToQualifier.contains(dir));
foreach (const QString &qualifier, m_dirToQualifier.values(dir)) { foreach (const QString &qualifier, m_dirToQualifier.values(dir)) {
registerQmlFile(filePath, qualifier, document); registerQmlFile(filePath, qualifier, document);
} }
......
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