check for plugin validity
This commit is contained in:
parent
763cfefd55
commit
a54da78ce8
@ -380,7 +380,9 @@ AppletQuickItem::AppletQuickItem(Plasma::Applet *applet, QQuickItem *parent)
|
||||
this, SLOT(compactRepresentationCheck()));
|
||||
|
||||
d->qmlObject = new KDeclarative::QmlObject(this);
|
||||
d->qmlObject->setTranslationDomain("plasma_applet_" + applet->pluginInfo().pluginName());
|
||||
if (applet->pluginInfo().isValid()) {
|
||||
d->qmlObject->setTranslationDomain("plasma_applet_" + applet->pluginInfo().pluginName());
|
||||
}
|
||||
d->qmlObject->setInitializationDelayed(true);
|
||||
|
||||
// set the graphicObject dynamic property on applet
|
||||
|
Loading…
Reference in New Issue
Block a user