forked from qt-creator/qt-creator
QmlJSEditor: Avoid crash on temporary documents
Fixes: QTCREATORBUG-30739 Change-Id: I62872fc23529674d5fca6dcb6255872eab12a9da Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -750,6 +750,9 @@ static Utils::FilePath qmllsForFile(const Utils::FilePath &file,
|
|||||||
|
|
||||||
void QmlJSEditorDocumentPrivate::settingsChanged()
|
void QmlJSEditorDocumentPrivate::settingsChanged()
|
||||||
{
|
{
|
||||||
|
if (q->isTemporary())
|
||||||
|
return;
|
||||||
|
|
||||||
Utils::FilePath newQmlls = qmllsForFile(q->filePath(), ModelManagerInterface::instance());
|
Utils::FilePath newQmlls = qmllsForFile(q->filePath(), ModelManagerInterface::instance());
|
||||||
if (m_qmllsStatus.qmllsPath == newQmlls)
|
if (m_qmllsStatus.qmllsPath == newQmlls)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user