summaryrefslogtreecommitdiffstats
path: root/src/configimpl.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-08-13 17:23:42 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-08-13 17:23:42 (GMT)
commita27369dbf3cccbe4b96bfde1aca49d96d4b396f0 (patch)
treefef8279e2e220a5e663b00d42d8f346bce030b0e /src/configimpl.l
parent80bbd1796e410d1822e16833bcf6002692ff54df (diff)
downloadDoxygen-a27369dbf3cccbe4b96bfde1aca49d96d4b396f0.zip
Doxygen-a27369dbf3cccbe4b96bfde1aca49d96d4b396f0.tar.gz
Doxygen-a27369dbf3cccbe4b96bfde1aca49d96d4b396f0.tar.bz2
issue #7190 1.8.16: Blank FILE_PATTERNS => no files processed
This is actually a regression on #7195. Due to the fact that the init() routine has moved up, the settings for `FILE_PATTERNS` have already been done and a call to init does not operate on the `FILE_PATTERNS` variable but on the structure from which the `FILE_PATTERNS` was derived. We have should here operate on the `FILE_PATTERNS` directly as well., bu getting the default values out of the underlying structure.
Diffstat (limited to 'src/configimpl.l')
-rw-r--r--src/configimpl.l12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/configimpl.l b/src/configimpl.l
index bcb5a8c..2d91e12 100644
--- a/src/configimpl.l
+++ b/src/configimpl.l
@@ -1652,11 +1652,17 @@ void Config::checkAndCorrect()
QStrList &filePatternList = Config_getList(FILE_PATTERNS);
if (filePatternList.isEmpty())
{
- ConfigOption * opt = ConfigImpl::instance()->get("FILE_PATTERNS");
- if (opt->kind()==ConfigOption::O_List)
+ ConfigOption * opt = ConfigImpl::instance()->get("FILE_PATTERNS");
+ if (opt->kind()==ConfigOption::O_List)
+ {
+ QStrList l = ((ConfigList*)opt)->getDefault();
+ const char *p = l.first();
+ while (p)
{
- ((ConfigList*)opt)->init();
+ filePatternList.append(p);
+ p = l.next();
}
+ }
}
// add default pattern if needed