diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/configimpl.h | 1 | ||||
-rw-r--r-- | src/configimpl.l | 12 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/configimpl.h b/src/configimpl.h index 1594d47..55e056e 100644 --- a/src/configimpl.h +++ b/src/configimpl.h @@ -126,6 +126,7 @@ class ConfigList : public ConfigOption void setWidgetType(WidgetType w) { m_widgetType = w; } WidgetType widgetType() const { return m_widgetType; } QStrList *valueRef() { return &m_value; } + QStrList getDefault() { return m_defaultValue; } void writeTemplate(FTextStream &t,bool sl,bool); void compareDoxyfile(FTextStream &t); void substEnvVars(); 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 |