From c191ec965bbb0d39e09599c7e06ada0db8495c60 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 13 Sep 2013 14:50:05 +0200 Subject: [PATCH] correctly load panels when the shell gets switched --- shellcorona.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shellcorona.cpp b/shellcorona.cpp index 08283fd46..c9b534d28 100644 --- a/shellcorona.cpp +++ b/shellcorona.cpp @@ -364,6 +364,7 @@ void ShellCorona::updateScreenOwner(int wasScreen, int isScreen, Plasma::Contain } else { if (containment->isUiReady()) { + d->loadingDesktops.remove(containment); checkLoadingDesktopsComplete(); } else { d->loadingDesktops.insert(containment); @@ -384,6 +385,9 @@ void ShellCorona::handleContainmentAdded(Plasma::Containment* c) { connect(c, &Plasma::Containment::showAddWidgetsInterface, this, &ShellCorona::showWidgetExplorer); + connect(c, &QObject::destroyed, [=] (QObject *o) { + d->loadingDesktops.remove(static_cast(o)); + }); } void ShellCorona::showWidgetExplorer()