From 246277c5703140cc3a192661cf5119adc4fb34f6 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 19 Aug 2019 15:49:06 +0200 Subject: [PATCH] Nim: Disable non-".nim" files in project tree Change-Id: If1493bbf0ff7055e326753cf563080c0bbf850b5 Reviewed-by: Tobias Hunger Reviewed-by: Filippo Cucchetto --- src/plugins/nim/project/nimbuildsystem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/nim/project/nimbuildsystem.cpp b/src/plugins/nim/project/nimbuildsystem.cpp index 023d253df71..e437ab73545 100644 --- a/src/plugins/nim/project/nimbuildsystem.cpp +++ b/src/plugins/nim/project/nimbuildsystem.cpp @@ -160,6 +160,8 @@ void NimBuildSystem::updateProject() QSet directories; for (FileNode *node : m_scanner.release()) { + if (!node->path().endsWith(".nim")) + node->setEnabled(false); // Disable files that do not end in .nim directories.insert(node->directory()); newRoot->addNestedNode(std::unique_ptr(node)); }