Changeset View
Changeset View
Standalone View
Standalone View
kcms/cursortheme/kcmcursortheme.cpp
Show First 20 Lines • Show All 449 Lines • ▼ Show 20 Line(s) | 446 | for (const QString& created : entry.installedFiles()) { | |||
---|---|---|---|---|---|
450 | } | 450 | } | ||
451 | // Because we sometimes get some extra slashes in the installed files list | 451 | // Because we sometimes get some extra slashes in the installed files list | ||
452 | list.removeAll({}); | 452 | list.removeAll({}); | ||
453 | // Because we'll also get the containing folder, if it was not already there | 453 | // Because we'll also get the containing folder, if it was not already there | ||
454 | // we need to ignore it. | 454 | // we need to ignore it. | ||
455 | if (list.last() == QLatin1String(".icons")) { | 455 | if (list.last() == QLatin1String(".icons")) { | ||
456 | continue; | 456 | continue; | ||
457 | } | 457 | } | ||
458 | m_themeModel->addTheme(list.join(QLatin1Char('/'))); | 458 | m_themeModel->addTheme(QString("/%1").arg(list.join(QLatin1Char('/')))); | ||
apol: How about
`m_themeModel->addTheme(QLatin1Char('/') + list.join(QLatin1Char('/')));`
Or… | |||||
459 | } | 459 | } | ||
460 | } | 460 | } | ||
461 | } | 461 | } | ||
462 | } | 462 | } | ||
463 | } | 463 | } | ||
464 | } | 464 | } | ||
465 | 465 | | |||
466 | void CursorThemeConfig::installThemeFromFile(const QUrl &url) | 466 | void CursorThemeConfig::installThemeFromFile(const QUrl &url) | ||
▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines |
How about
m_themeModel->addTheme(QLatin1Char('/') + list.join(QLatin1Char('/')));
Or otherwise, QStringLiteral