mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-07 10:55:52 +00:00
add '$this' feature to lambda functions
fix large size on startup fix invalid key parsing
This commit is contained in:
@ -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(' '));
|
||||
|
Reference in New Issue
Block a user