forked from qt-creator/qt-creator
qmldesigner: make DesignerSettings thread save
Change-Id: I07074b35456533e9729644ef3647803d477bd6f1 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -266,7 +266,7 @@ void TextEditorView::reformatFile()
|
||||
|
||||
// Reformat document if we have a .ui.qml file
|
||||
if (document && document->filePath().toString().endsWith(".ui.qml")
|
||||
&& DesignerSettings::getValue(DesignerSettingsKey::REFORMAT_UI_QML_FILES).toBool()) {
|
||||
&& QmlDesignerPlugin::settings().value(DesignerSettingsKey::REFORMAT_UI_QML_FILES).toBool()) {
|
||||
|
||||
QmlJS::Document::Ptr currentDocument(document->semanticInfo().document);
|
||||
QmlJS::Snapshot snapshot = QmlJS::ModelManagerInterface::instance()->snapshot();
|
||||
|
||||
Reference in New Issue
Block a user