Added a saftey check in ParsePLEdit.
This commit is contained in:
parent
d5371d3d2b
commit
1b1cf78647
1 changed files with 2 additions and 0 deletions
2
Skin.cpp
2
Skin.cpp
|
@ -78,6 +78,8 @@ Skin::ParsePLEdit (void)
|
||||||
QList<QByteArray> l = line.split ('=');
|
QList<QByteArray> l = line.split ('=');
|
||||||
if (l.count () == 2) {
|
if (l.count () == 2) {
|
||||||
m_pledit_txt->insert (l[0].toLower (), l[1].trimmed());
|
m_pledit_txt->insert (l[0].toLower (), l[1].trimmed());
|
||||||
|
} else if (line.length() == 0) {
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue