be extra sure that the applet has an entry in the config on being added so when we config sync we're guaranteed they are in there
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=827479
This commit is contained in:
parent
355df19374
commit
92ee66d578
@ -1573,12 +1573,11 @@ void AppletPrivate::init()
|
|||||||
if (!api.isEmpty()) {
|
if (!api.isEmpty()) {
|
||||||
// find where the Package is
|
// find where the Package is
|
||||||
QString path = KStandardDirs::locate("data",
|
QString path = KStandardDirs::locate("data",
|
||||||
"plasma/plasmoids/" + appletDescription.pluginName() +
|
"plasma/plasmoids/" + appletDescription.pluginName() + "/");
|
||||||
"/");
|
|
||||||
|
|
||||||
if (path.isEmpty()) {
|
if (path.isEmpty()) {
|
||||||
q->setFailedToLaunch(true, i18n("Could not locate the %1 package required for the %2 widget.",
|
q->setFailedToLaunch(true, i18n("Could not locate the %1 package required for the %2 widget.",
|
||||||
appletDescription.pluginName(), appletDescription.name()));
|
appletDescription.pluginName(), appletDescription.name()));
|
||||||
} else {
|
} else {
|
||||||
// create the package and see if we have something real
|
// create the package and see if we have something real
|
||||||
//kDebug() << "trying for" << path;
|
//kDebug() << "trying for" << path;
|
||||||
|
@ -572,6 +572,8 @@ void Containment::addApplet(Applet *applet, const QPointF &pos, bool delayInit)
|
|||||||
applet->updateConstraints(Plasma::AllConstraints | Plasma::StartupCompletedConstraint);
|
applet->updateConstraints(Plasma::AllConstraints | Plasma::StartupCompletedConstraint);
|
||||||
if (!delayInit) {
|
if (!delayInit) {
|
||||||
applet->flushPendingConstraintsEvents();
|
applet->flushPendingConstraintsEvents();
|
||||||
|
KConfigGroup *cg = applet->d->mainConfigGroup();
|
||||||
|
applet->save(*cg);
|
||||||
emit configNeedsSaving();
|
emit configNeedsSaving();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -325,6 +325,8 @@ KSharedConfigPtr Corona::config() const
|
|||||||
Containment* Corona::addContainment(const QString& name, const QVariantList& args)
|
Containment* Corona::addContainment(const QString& name, const QVariantList& args)
|
||||||
{
|
{
|
||||||
Containment *c = d->addContainment(name, args, 0, false);
|
Containment *c = d->addContainment(name, args, 0, false);
|
||||||
|
KConfigGroup cg = c->config();
|
||||||
|
c->save(cg);
|
||||||
requestConfigSync();
|
requestConfigSync();
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user