diff options
author | Fawzi Mohamed <fawzi.mohamed@digia.com> | 2014-11-24 18:07:28 +0100 |
---|---|---|
committer | Fawzi Mohamed <fawzi.mohamed@theqtcompany.com> | 2014-11-25 14:35:57 +0100 |
commit | 2c0125f67bbce27570ffa7195d03a13bbf209ccd (patch) | |
tree | b10ad39292346fdb01270274c5cee5e4550a3db2 /src/plugins/qmljstools/qmljsmodelmanager.cpp | |
parent | addb1c171a32d73201dcf0e91f7986cc34ae1563 (diff) |
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>
Diffstat (limited to 'src/plugins/qmljstools/qmljsmodelmanager.cpp')
-rw-r--r-- | src/plugins/qmljstools/qmljsmodelmanager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/qmljstools/qmljsmodelmanager.cpp b/src/plugins/qmljstools/qmljsmodelmanager.cpp index 544f3ac67c..3135a78134 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); } |