use clearItems when an applet gets deleted

back when this was written KConfigSkeleton didn't have clearItems
and setDefaults can still leave some cruft behind
this ensures all is gone
This commit is contained in:
Marco Martin 2019-07-18 17:44:15 +02:00
parent 03d406770f
commit ccceb83b10

View File

@ -223,7 +223,7 @@ void AppletPrivate::cleanUpAndDelete()
{
// reimplemented in the UI specific library
if (configLoader) {
configLoader->setDefaults();
configLoader->clearItems();
}
resetConfigurationObject();