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());
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);