associate broken applets with the id so they will be removedable (automatically at next start, even)

BUG:166811

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=833967
This commit is contained in:
Aaron J. Seigo 2008-07-17 18:21:55 +00:00
parent 754b000b42
commit abf220d8db

View File

@ -290,7 +290,6 @@ void Containment::restoreContents(KConfigGroup &group)
foreach (KConfigGroup appletConfig, appletConfigs) {
int appId = appletConfig.name().toUInt();
//kDebug() << "the name is" << appletConfig.name();
QString plugin = appletConfig.readEntry("plugin", QString());
if (plugin.isEmpty()) {
@ -1265,9 +1264,8 @@ Applet* ContainmentPrivate::addApplet(const QString& name, const QVariantList& a
if (!applet) {
kDebug() << "Applet" << name << "could not be loaded.";
applet = new Applet;
//TODO: uncomment this when not in string freeze.
//applet->setFailedToLaunch(true, QString("Could not find requested component: %1").arg(name));
applet = new Applet(0, QString(), id);
applet->setFailedToLaunch(true, QString("Could not find requested component: %1").arg(name));
}
//kDebug() << applet->name() << "sizehint:" << applet->sizeHint() << "geometry:" << applet->geometry();