diff --git a/devtools/create_project/create_project.cpp b/devtools/create_project/create_project.cpp index 6ab5e0daeeb..d97d60d79d6 100644 --- a/devtools/create_project/create_project.cpp +++ b/devtools/create_project/create_project.cpp @@ -1479,12 +1479,12 @@ FileNode *scanFiles(const std::string &dir, const StringList &includeList, const continue; } - if (isInList(dir, i->name, excludeList)) - continue; - std::string name, ext; splitFilename(i->name, name, ext); + if (ext != "h" && isInList(dir, i->name, excludeList)) + continue; + if (!isInList(dir, i->name, includeList)) continue;