diff --git a/applets/notifications/lib/notificationsapplet.cpp b/applets/notifications/lib/notificationsapplet.cpp --- a/applets/notifications/lib/notificationsapplet.cpp +++ b/applets/notifications/lib/notificationsapplet.cpp @@ -61,6 +61,12 @@ void NotificationsApplet::onScreenChanges() { + // when removing the panel the applet is in, the containment is being destroyed but its corona is still + // there, rightfully emitting availableScreenRectChanged and then we blow up if we try to access it. + if (!containment()) { + return; + } + m_availableScreenRect = containment()->corona()->availableScreenRect(containment()->screen()); Q_EMIT availableScreenRectChanged(m_availableScreenRect); }