summaryrefslogtreecommitdiffstats
path: root/src/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h
index 4780c95..5869add 100644
--- a/src/config.h
+++ b/src/config.h
@@ -125,6 +125,7 @@ class ConfigList : public ConfigOption
t << "\n";
}
void substEnvVars();
+ void init() { m_value.clear(); }
private:
QStrList m_value;
WidgetType m_widgetType;
@@ -244,7 +245,7 @@ class ConfigInt : public ConfigOption
t << endl;
}
t << m_name << m_spaces.left(MAX_OPTION_LENGTH-m_name.length()) << "= ";
- if (upd)
+ if (upd && !m_valueString.isEmpty())
{
writeStringValue(t,m_valueString);
}
@@ -281,6 +282,7 @@ class ConfigBool : public ConfigOption
bool *valueRef() { return &m_value; }
void convertStrToVal();
void substEnvVars();
+ void setValueString(const QCString &v) { m_valueString = v; }
void writeTemplate(QTextStream &t,bool sl,bool upd)
{
if (!sl)