diff options
author | Cristian Adam <cristian.adam@qt.io> | 2020-02-20 11:20:32 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2020-02-20 15:41:28 +0000 |
commit | f65f260c917e7b6034880aab3c8f216e6ab4a41e (patch) | |
tree | 1aaf24eb02b3647439728ed855d34fd8fcfdebe1 /src/plugins/cmakeprojectmanager/fileapireader.cpp | |
parent | 65e244b2381fb3945efb838cf85c51aa4cfe2141 (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.cpp | 13 |
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() { |