From 335bab6ca01409fe0ef787bbe2180dbac929559a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Thu, 16 Jul 2015 04:25:40 +0200 Subject: [PATCH] Make sure blacklist is not removed from config --- containments/homescreen/applicationlistmodel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/containments/homescreen/applicationlistmodel.cpp b/containments/homescreen/applicationlistmodel.cpp index bb70e072..47e22c68 100644 --- a/containments/homescreen/applicationlistmodel.cpp +++ b/containments/homescreen/applicationlistmodel.cpp @@ -88,6 +88,7 @@ void ApplicationListModel::loadApplications() QStringList blacklist = blgroup.readEntry("blacklist", QStringList()); + beginResetModel(); m_applicationList.clear(); @@ -143,6 +144,7 @@ void ApplicationListModel::loadApplications() } blgroup.writeEntry("allapps", bl); + blgroup.writeEntry("blacklist", blacklist); cfg->sync(); std::sort(unorderedList.begin(), unorderedList.end(), appNameLessThan);