forked from qt-creator/qt-creator
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 <Thomas.Hartmann@digia.com>
This commit is contained in:
committed by
Fawzi Mohamed
parent
addb1c171a
commit
2c0125f67b
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user