check for plugin validity

This commit is contained in:
Marco Martin 2014-09-01 18:17:22 +02:00
parent 763cfefd55
commit a54da78ce8

View File

@ -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