From 2c0125f67bbce27570ffa7195d03a13bbf209ccd Mon Sep 17 00:00:00 2001 From: Fawzi Mohamed Date: Mon, 24 Nov 2014 18:07:28 +0100 Subject: [PATCH] qmljs: do not reset ProjectInfo in updateProjectInfo updateProjectInfo did reset the ProjectInfo to the default one. As now currentProjectChanged calls it at a different time, it did give several issues. Change-Id: Ia1eabc0ea83e89038a8f7d10cc6cda0544abfaea Reviewed-by: Thomas Hartmann --- src/plugins/qmljstools/qmljsmodelmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/qmljstools/qmljsmodelmanager.cpp b/src/plugins/qmljstools/qmljsmodelmanager.cpp index 544f3ac67c9..3135a781342 100644 --- a/src/plugins/qmljstools/qmljsmodelmanager.cpp +++ b/src/plugins/qmljstools/qmljsmodelmanager.cpp @@ -265,7 +265,8 @@ void ModelManager::updateDefaultProjectInfo() { // needs to be performed in the ui therad ProjectExplorer::Project *currentProject = ProjectExplorer::ProjectExplorerPlugin::currentProject(); - ProjectInfo newDefaultProjectInfo = defaultProjectInfoForProject(currentProject); + ProjectInfo newDefaultProjectInfo = projectInfo(currentProject, + defaultProjectInfoForProject(currentProject)); setDefaultProject(projectInfo(currentProject,newDefaultProjectInfo), currentProject); }