Fix null object QObject::connect warning

REVIEW: 128171
This commit is contained in:
David Edmundson 2016-06-13 10:53:31 +01:00
parent 122407d5e6
commit 4f7ead27d6

View File

@ -161,12 +161,14 @@ AppletInterface::AppletInterface(Plasma::Applet *a, const QVariantList &args, QQ
connect(applet(), &Plasma::Applet::busyChanged,
this, &AppletInterface::busyChanged);
connect(appletScript(), &DeclarativeAppletScript::formFactorChanged,
this, &AppletInterface::formFactorChanged);
connect(appletScript(), &DeclarativeAppletScript::locationChanged,
this, &AppletInterface::locationChanged);
connect(appletScript(), &DeclarativeAppletScript::contextChanged,
this, &AppletInterface::contextChanged);
if (appletScript()) {
connect(appletScript(), &DeclarativeAppletScript::formFactorChanged,
this, &AppletInterface::formFactorChanged);
connect(appletScript(), &DeclarativeAppletScript::locationChanged,
this, &AppletInterface::locationChanged);
connect(appletScript(), &DeclarativeAppletScript::contextChanged,
this, &AppletInterface::contextChanged);
}
if (applet()->containment()) {
connect(applet()->containment(), &Plasma::Containment::screenChanged,