Fixed QTCREATORBUG-1397.

When adding a new file, refreshing semantic errors in the open editor should
have worked. It now also works for removing existing files.

Done-with: Christian Kamm
This commit is contained in:
Erik Verbruggen
2010-05-18 13:40:35 +02:00
parent 35bfbec797
commit eb9e7866f2
13 changed files with 45 additions and 32 deletions

View File

@@ -79,14 +79,8 @@ ProjectExplorer::Project *Manager::openProject(const QString &fileName)
}
}
if (fileInfo.isFile()) {
QmlProject *project = new QmlProject(this, fileName);
QmlTaskManager *taskManager = QmlTaskManager::instance();
if (taskManager)
connect(project, SIGNAL(filesRemovedFromProject(QStringList)),
taskManager, SLOT(documentsRemoved(const QStringList)));
return project;
}
if (fileInfo.isFile())
return new QmlProject(this, fileName);
return 0;
}