never hide desktops

Change-Id: I804bc9de57b42c1e299cc20efb636bfab3457464
This commit is contained in:
Marco Martin 2014-11-13 11:43:59 +01:00
parent 7b747fb341
commit fa0a37c705

View File

@ -105,7 +105,10 @@ void ViewPrivate::setContainment(Plasma::Containment *cont)
q, &View::showConfigurationInterface);
QObject::connect(cont, SIGNAL(destroyedChanged(bool)),
q, SLOT(updateDestroyed(bool)));
if (cont->containmentType() == Plasma::Types::PanelContainment ||
cont->containmentType() == Plasma::Types::CustomPanelContainment) {
q->setVisible(!cont->destroyed() && cont->isUiReady());
}
} else {
return;
}