Hi,
DesktopView::setContainment is sometimes explicitly called with a null
containment, however this is not checked in the code. The attached
patch solves that. Ok to commit?
g
Index: kdebase/workspace/plasma/shells/desktop/desktopview.cpp
===================================================================
--- kdebase/workspace/plasma/shells/desktop/desktopview.cpp	(revision 874161)
+++ kdebase/workspace/plasma/shells/desktop/desktopview.cpp	(working copy)
@@ -173,7 +173,7 @@
     }
 
     Plasma::ZoomLevel zoomLevel = PlasmaApp::self()->desktopZoomLevel();
-    if (zoomLevel == Plasma::DesktopZoom) {
+    if (zoomLevel == Plasma::DesktopZoom && containment) {
         //make sure actions are up-to-date
         //this is icky but necessary to have the toolbox show the right actions for the zoom level
         containment->enableAction("zoom in", false);
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to