summaryrefslogtreecommitdiff
path: root/src/plugins/genericprojectmanager/genericprojectmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/genericprojectmanager/genericprojectmanager.cpp')
-rw-r--r--src/plugins/genericprojectmanager/genericprojectmanager.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/plugins/genericprojectmanager/genericprojectmanager.cpp b/src/plugins/genericprojectmanager/genericprojectmanager.cpp
index 5495173f8d..58f19648a3 100644
--- a/src/plugins/genericprojectmanager/genericprojectmanager.cpp
+++ b/src/plugins/genericprojectmanager/genericprojectmanager.cpp
@@ -79,10 +79,12 @@ void Manager::unregisterProject(GenericProject *project)
void Manager::notifyChanged(const QString &fileName)
{
foreach (GenericProject *project, m_projects) {
- if (fileName == project->filesFileName() ||
- fileName == project->includesFileName() ||
- fileName == project->configFileName())
- project->refresh();
+ if (fileName == project->filesFileName()) {
+ project->refresh(GenericProject::Files);
+ }
+ else if (fileName == project->includesFileName() ||
+ fileName == project->configFileName()) {
+ project->refresh(GenericProject::Configuration);
+ }
}
}
-