mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
Fix on Qt 5.14
Can't use iterators on temporary objects
This commit is contained in:
parent
a31c6ac6c7
commit
e46b55851d
1 changed files with 2 additions and 2 deletions
|
|
@ -52,8 +52,8 @@ void ApplicationListModel::loadSettings()
|
||||||
{
|
{
|
||||||
m_favorites = m_homeScreen->config().readEntry("Favorites", QStringList());
|
m_favorites = m_homeScreen->config().readEntry("Favorites", QStringList());
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
|
||||||
m_desktopItems = QSet<QString>(m_homeScreen->config().readEntry("DesktopItems", QStringList()).begin(),
|
const auto di = m_homeScreen->config().readEntry("DesktopItems", QStringList());
|
||||||
m_homeScreen->config().readEntry("DesktopItems", QStringList()).end());
|
m_desktopItems = QSet<QString>(di.begin(), di.end());
|
||||||
#else
|
#else
|
||||||
m_desktopItems = m_homeScreen->config().readEntry("DesktopItems", QStringList()).toSet();
|
m_desktopItems = m_homeScreen->config().readEntry("DesktopItems", QStringList()).toSet();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue