Commit 0eba5453 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Task Manager] Avoid crash with QStringBuilder

The lambda returns a QStringBuilder which contains dangling references, see also QTBUG-47066

BUG: 420452
FIXED-IN: 5.18.5

Differential Revision: https://phabricator.kde.org/D29224
parent 79bd2f1c
......@@ -54,7 +54,7 @@ void Backend::reload()
m_badgeBlacklist = m_settings->badgeBlacklistedApplications();
// Unity Launcher API operates on storage IDs ("foo.desktop"), whereas settings return desktop entries "foo"
std::transform(m_badgeBlacklist.begin(), m_badgeBlacklist.end(), m_badgeBlacklist.begin(), [](const QString &desktopEntry) {
std::transform(m_badgeBlacklist.begin(), m_badgeBlacklist.end(), m_badgeBlacklist.begin(), [](const QString &desktopEntry) -> QString {
return desktopEntry + QStringLiteral(".desktop");
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment