add '$this' feature to lambda functions

fix large size on startup
fix invalid key parsing
This commit is contained in:
arcan1s
2015-09-03 00:30:10 +03:00
parent 6689bea9a7
commit 7218defe19
9 changed files with 29 additions and 18 deletions

View File

@ -533,7 +533,7 @@ QString ExtendedSysMon::buildString(const QString current, const QString value,
qCDebug(LOG_ESM) << "Strip after" << s;
int index = value.indexOf(current);
if ((index == -1) || ((index + s + 1) > value.count()))
if ((current.isEmpty()) || ((index + s + 1) > value.count()))
return QString("%1").arg(value.left(s), s, QLatin1Char(' '));
else
return QString("%1").arg(value.mid(index + 1, s), s, QLatin1Char(' '));