Fix null object QObject::connect warning
REVIEW: 128171
This commit is contained in:
parent
122407d5e6
commit
4f7ead27d6
@ -161,12 +161,14 @@ AppletInterface::AppletInterface(Plasma::Applet *a, const QVariantList &args, QQ
|
|||||||
connect(applet(), &Plasma::Applet::busyChanged,
|
connect(applet(), &Plasma::Applet::busyChanged,
|
||||||
this, &AppletInterface::busyChanged);
|
this, &AppletInterface::busyChanged);
|
||||||
|
|
||||||
connect(appletScript(), &DeclarativeAppletScript::formFactorChanged,
|
if (appletScript()) {
|
||||||
this, &AppletInterface::formFactorChanged);
|
connect(appletScript(), &DeclarativeAppletScript::formFactorChanged,
|
||||||
connect(appletScript(), &DeclarativeAppletScript::locationChanged,
|
this, &AppletInterface::formFactorChanged);
|
||||||
this, &AppletInterface::locationChanged);
|
connect(appletScript(), &DeclarativeAppletScript::locationChanged,
|
||||||
connect(appletScript(), &DeclarativeAppletScript::contextChanged,
|
this, &AppletInterface::locationChanged);
|
||||||
this, &AppletInterface::contextChanged);
|
connect(appletScript(), &DeclarativeAppletScript::contextChanged,
|
||||||
|
this, &AppletInterface::contextChanged);
|
||||||
|
}
|
||||||
|
|
||||||
if (applet()->containment()) {
|
if (applet()->containment()) {
|
||||||
connect(applet()->containment(), &Plasma::Containment::screenChanged,
|
connect(applet()->containment(), &Plasma::Containment::screenChanged,
|
||||||
|
Loading…
Reference in New Issue
Block a user