Make sure blacklist is not removed from config

This commit is contained in:
Sebastian Kügler 2015-07-16 04:25:40 +02:00
parent a9ffbb3abe
commit 335bab6ca0

View file

@ -88,6 +88,7 @@ void ApplicationListModel::loadApplications()
QStringList blacklist = blgroup.readEntry("blacklist", QStringList()); QStringList blacklist = blgroup.readEntry("blacklist", QStringList());
beginResetModel(); beginResetModel();
m_applicationList.clear(); m_applicationList.clear();
@ -143,6 +144,7 @@ void ApplicationListModel::loadApplications()
} }
blgroup.writeEntry("allapps", bl); blgroup.writeEntry("allapps", bl);
blgroup.writeEntry("blacklist", blacklist);
cfg->sync(); cfg->sync();
std::sort(unorderedList.begin(), unorderedList.end(), appNameLessThan); std::sort(unorderedList.begin(), unorderedList.end(), appNameLessThan);