QmlProject: Update code model even without valid qmldump.

Change-Id: I6c27fe4ca0201cbbe929821d4408d61a068e8982
Reviewed-on: http://codereview.qt-project.org/4968
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
This commit is contained in:
Christian Kamm
2011-09-15 12:16:14 +02:00
parent 0825e422e3
commit 649b8057f9

View File

@@ -152,9 +152,8 @@ void QmlProject::refresh(RefreshOptions options)
QList<ProjectExplorer::ToolChain *> tcList;
if (version && !version->qtAbis().isEmpty())
tcList = ProjectExplorer::ToolChainManager::instance()->findToolChains(version->qtAbis().at(0));
if (tcList.isEmpty())
return;
QtSupport::QmlDumpTool::pathAndEnvironment(this, version, tcList.first(), false, &pinfo.qmlDumpPath, &pinfo.qmlDumpEnvironment);
if (!tcList.isEmpty())
QtSupport::QmlDumpTool::pathAndEnvironment(this, version, tcList.first(), false, &pinfo.qmlDumpPath, &pinfo.qmlDumpEnvironment);
}
if (version) {
pinfo.qtImportsPath = version->versionInfo().value("QT_INSTALL_IMPORTS");