mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23: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());
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
|
||||
m_desktopItems = QSet<QString>(m_homeScreen->config().readEntry("DesktopItems", QStringList()).begin(),
|
||||
m_homeScreen->config().readEntry("DesktopItems", QStringList()).end());
|
||||
const auto di = m_homeScreen->config().readEntry("DesktopItems", QStringList());
|
||||
m_desktopItems = QSet<QString>(di.begin(), di.end());
|
||||
#else
|
||||
m_desktopItems = m_homeScreen->config().readEntry("DesktopItems", QStringList()).toSet();
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue