Merge branch 'Plasma/5.2'

wilder-5.14
Marco Martin 11 years ago
commit 3b23b7660b
  1. 14
      shell/shellcorona.cpp

@ -478,6 +478,20 @@ void ShellCorona::showAlternativesForApplet(Plasma::Applet *applet)
qmlObj->completeInitialization();
connect(qmlObj->rootObject(), SIGNAL(visibleChanged(bool)),
this, SLOT(alternativesVisibilityChanged(bool)));
connect(applet, &Plasma::Applet::destroyedChanged, [=] (bool destroyed) {
if (!destroyed) {
return;
}
QMutableListIterator<KDeclarative::QmlObject *> it(m_alternativesObjects);
while (it.hasNext()) {
KDeclarative::QmlObject *obj = it.next();
if (obj == qmlObj) {
it.remove();
obj->deleteLater();
}
}
});
}
void ShellCorona::alternativesVisibilityChanged(bool visible)

Loading…
Cancel
Save