From e46b55851deb5db06368b23d83b7d349184e1e9a Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 6 Feb 2020 16:46:14 +0100 Subject: [PATCH] Fix on Qt 5.14 Can't use iterators on temporary objects --- containments/homescreen/applicationlistmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/containments/homescreen/applicationlistmodel.cpp b/containments/homescreen/applicationlistmodel.cpp index 9391fc1c..443cad94 100644 --- a/containments/homescreen/applicationlistmodel.cpp +++ b/containments/homescreen/applicationlistmodel.cpp @@ -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(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(di.begin(), di.end()); #else m_desktopItems = m_homeScreen->config().readEntry("DesktopItems", QStringList()).toSet(); #endif