forked from qt-creator/qt-creator
Project: Make Project::files return a FileNameList
Change-Id: I75ceb22ac65b8288d824f229d44089cba6fc8ea3 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -349,10 +349,8 @@ void QmlJSEditorPlugin::autoFormatOnSave(Core::IDocument *document)
|
||||
// Check if file is contained in the current project (if wished)
|
||||
if (QmlJsEditingSettings::get().autoFormatOnlyCurrentProject()) {
|
||||
const ProjectExplorer::Project *pro = ProjectExplorer::ProjectTree::currentProject();
|
||||
if (!pro || !pro->files(ProjectExplorer::Project::SourceFiles).contains(
|
||||
document->filePath().toString())) {
|
||||
if (!pro || !pro->files(ProjectExplorer::Project::SourceFiles).contains(document->filePath()))
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
reformatFile();
|
||||
|
||||
Reference in New Issue
Block a user