clearContainments is unused and ACTUALLY remove the containments when init'ing
This commit is contained in:
parent
dcc4c58bf7
commit
1303008ee6
@ -172,7 +172,15 @@ void Corona::requireConfigSync()
|
||||
|
||||
void Corona::initializeLayout(const QString &configName)
|
||||
{
|
||||
clearContainments();
|
||||
{
|
||||
QList<Containment *> containments = d->containments;
|
||||
d->containments.clear();
|
||||
foreach (Containment *containment, containments) {
|
||||
disconnect(containment, 0, this, 0);
|
||||
containment->destroy();
|
||||
}
|
||||
}
|
||||
|
||||
loadLayout(configName);
|
||||
|
||||
if (d->containments.isEmpty()) {
|
||||
@ -244,13 +252,6 @@ QList<Containment*> Corona::containments() const
|
||||
return d->containments;
|
||||
}
|
||||
|
||||
void Corona::clearContainments()
|
||||
{
|
||||
foreach (Containment *containment, d->containments) {
|
||||
containment->clearApplets();
|
||||
}
|
||||
}
|
||||
|
||||
KSharedConfigPtr Corona::config() const
|
||||
{
|
||||
if (!d->config) {
|
||||
|
@ -84,11 +84,6 @@ public:
|
||||
*/
|
||||
QList<Containment*> containments() const;
|
||||
|
||||
/**
|
||||
* Clear the CoronaBase from all applets.
|
||||
*/
|
||||
void clearContainments();
|
||||
|
||||
/**
|
||||
* Returns the config file used to store the configuration for this CoronaBase
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user