aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cmakeprojectmanager/fileapireader.cpp
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2020-02-20 11:20:32 +0100
committerTobias Hunger <tobias.hunger@qt.io>2020-02-20 15:41:28 +0000
commitf65f260c917e7b6034880aab3c8f216e6ab4a41e (patch)
tree1aaf24eb02b3647439728ed855d34fd8fcfdebe1 /src/plugins/cmakeprojectmanager/fileapireader.cpp
parent65e244b2381fb3945efb838cf85c51aa4cfe2141 (diff)
CMakeBuildSystem: Don't re-update code model on CMakeLists.txt saves
Currently if you edit a CMakeLists.txt and then press save, the code model will be reindexed. On projects like Qt Creator this operation is quite significant. Note that the code model is updated after CMake has run on the project, which is what I would expect. Saving the CMakeLists.txt and not running CMake has no effect on the project, and the code model shoudn't be reindexed. Change-Id: I61289fda60752ef002cf3625d339d4fcaf144d1b Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/cmakeprojectmanager/fileapireader.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/fileapireader.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/plugins/cmakeprojectmanager/fileapireader.cpp b/src/plugins/cmakeprojectmanager/fileapireader.cpp
index 13c90abf7c..83a81f2a70 100644
--- a/src/plugins/cmakeprojectmanager/fileapireader.cpp
+++ b/src/plugins/cmakeprojectmanager/fileapireader.cpp
@@ -63,18 +63,7 @@ using namespace FileApiDetails;
// FileApiReader:
// --------------------------------------------------------------------
-FileApiReader::FileApiReader()
-{
- connect(Core::EditorManager::instance(),
- &Core::EditorManager::aboutToSave,
- this,
- [this](const Core::IDocument *document) {
- if (m_cmakeFiles.contains(document->filePath())) {
- qCDebug(cmakeFileApiMode) << "FileApiReader: DIRTY SIGNAL";
- emit dirty();
- }
- });
-}
+FileApiReader::FileApiReader() {}
FileApiReader::~FileApiReader()
{