aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/python/pythonplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/python/pythonplugin.cpp')
-rw-r--r--src/plugins/python/pythonplugin.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/python/pythonplugin.cpp b/src/plugins/python/pythonplugin.cpp
index 81353edf3f1..51ede9b83dd 100644
--- a/src/plugins/python/pythonplugin.cpp
+++ b/src/plugins/python/pythonplugin.cpp
@@ -413,14 +413,16 @@ public:
}
};
-PythonProject::PythonProject(const FilePath &fileName) :
- Project(Constants::C_PY_MIMETYPE, fileName, [this]() { refresh(); })
+PythonProject::PythonProject(const FilePath &fileName)
+ : Project(Constants::C_PY_MIMETYPE, fileName)
{
setId(PythonProjectId);
setProjectLanguages(Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID));
setDisplayName(fileName.toFileInfo().completeBaseName());
setNeedsBuildConfigurations(false);
+
+ connect(this, &PythonProject::projectFileIsDirty, this, [this]() { refresh(); });
}
static QStringList readLines(const Utils::FilePath &projectFile)