forcefully remove some entries
newly created containments may have some default entries like plugin or formfactor written in the config group, but not in keyList() they have to be explicitly removed because wouldn't be removed in deleteGroup BUG:335792
This commit is contained in:
parent
6608359333
commit
b6ac8ded88
@ -446,17 +446,26 @@ void AppletPrivate::resetConfigurationObject()
|
||||
{
|
||||
// make sure mainConfigGroup exists in all cases
|
||||
mainConfigGroup();
|
||||
|
||||
mainConfig->deleteEntry("plugin");
|
||||
mainConfig->deleteEntry("formfactor");
|
||||
mainConfig->deleteEntry("immutability");
|
||||
mainConfig->deleteEntry("location");
|
||||
mainConfig->deleteGroup();
|
||||
delete mainConfig;
|
||||
mainConfig = 0;
|
||||
|
||||
if (!q->containment()) {
|
||||
return;
|
||||
}
|
||||
Corona *corona = q->containment()->corona();
|
||||
if (corona) {
|
||||
corona->requireConfigSync();
|
||||
Containment *cont = qobject_cast<Containment *>(q);
|
||||
|
||||
if (cont && cont->corona()) {
|
||||
cont->corona()->requireConfigSync();
|
||||
} else {
|
||||
if (!q->containment()) {
|
||||
return;
|
||||
}
|
||||
Corona *corona = q->containment()->corona();
|
||||
if (corona) {
|
||||
corona->requireConfigSync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user