forked from qt-creator/qt-creator
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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user