Skip to content

Commit 3d776cc

Browse files
committed
Fix DDC database selection
1 parent a6a43b0 commit 3d776cc

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/config/ConfigIO.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ bool ConfigIO::readLine(const QString &line,
106106
QString qname = name.trimmed();
107107
QString qvalue = value.trimmed();
108108

109-
QRegExp re("\\d*");
110-
QRegExp re_float("[+-]?([0-9]*[.])?[0-9]+");
109+
//QRegExp re("\\d*");
110+
QRegExp re_float("[+-]?([0-9]*[.])[0-9]+");
111111

112112
if (qvalue == "true")
113113
{
@@ -117,10 +117,6 @@ bool ConfigIO::readLine(const QString &line,
117117
{
118118
out = QPair<QString, QVariant>(qname, false);
119119
}
120-
else if (re.exactMatch(qvalue))
121-
{
122-
out = QPair<QString, QVariant>(qname, qvalue.toInt());
123-
}
124120
else if (re_float.exactMatch(qvalue))
125121
{
126122
out = QPair<QString, QVariant>(qname, qvalue.toFloat());
@@ -131,4 +127,4 @@ bool ConfigIO::readLine(const QString &line,
131127
}
132128

133129
return true;
134-
}
130+
}

0 commit comments

Comments
 (0)