diff --git a/src/shell/activity.cpp b/src/shell/activity.cpp index 50dfe1e2a..2523397d8 100644 --- a/src/shell/activity.cpp +++ b/src/shell/activity.cpp @@ -20,12 +20,14 @@ #include "shellcorona.h" #include "kidenticongenerator.h" +#include #include #include #include #include #include +#include #include #include #include @@ -211,6 +213,12 @@ Plasma::Containment* Activity::containmentForScreen(int screen) containment->setScreen(screen); } + QAction *closeAction = containment->actions()->action("remove"); + if (closeAction) { + closeAction->setEnabled(false); + closeAction->setVisible(false); + } + return containment; }