forked from qt-creator/qt-creator
CMake: Fix project tree getting lost during reparsing
Fix the project tree getting lost after changing a cmake file. This is due to the old set of files being used for deduplication, so no CMakeLists.txt files got added to the tree, and then nothing could be added to those later. Change-Id: I46989e0b802ab2a030d1922282361359837c41a4 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -488,6 +488,8 @@ void ServerModeReader::extractCMakeInputsData(const QVariantMap &data)
|
||||
QTC_ASSERT(src == m_parameters.sourceDirectory, return);
|
||||
QDir srcDir(src.toString());
|
||||
|
||||
m_cmakeFiles.clear();
|
||||
|
||||
const QVariantList buildFiles = data.value("buildFiles").toList();
|
||||
for (const QVariant &bf : buildFiles) {
|
||||
const QVariantMap §ion = bf.toMap();
|
||||
|
||||
Reference in New Issue
Block a user