summaryrefslogtreecommitdiffstats
path: root/src/configimpl.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/configimpl.l')
-rw-r--r--src/configimpl.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/configimpl.l b/src/configimpl.l
index d07e25c..da94484 100644
--- a/src/configimpl.l
+++ b/src/configimpl.l
@@ -234,6 +234,11 @@ void ConfigBool::convertStrToVal()
void ConfigEnum::convertStrToVal()
{
+ if (m_value.isEmpty())
+ {
+ m_value = m_defValue;
+ return;
+ }
QCString val = m_value.stripWhiteSpace().lower();
const char *s=m_valueRange.first();
while (s)