keep remove action enabled on panels
svn path=/trunk/KDE/kdelibs/; revision=892472
This commit is contained in:
parent
c64d38b551
commit
b596d894e5
@ -827,7 +827,9 @@ void Containment::setScreen(int screen, int desktop)
|
||||
swapScreensWith->setScreen(oldScreen);
|
||||
}
|
||||
|
||||
enableAction("remove", screen == -1);
|
||||
if (immutability() == Mutable && containmentType() != Plasma::Containment::PanelContainment) {
|
||||
enableAction("remove", screen == -1);
|
||||
}
|
||||
}
|
||||
|
||||
int Containment::screen() const
|
||||
@ -1616,7 +1618,7 @@ void ContainmentPrivate::containmentConstraintsEvent(Plasma::Constraints constra
|
||||
|
||||
if (toolBox && constraints & Plasma::StartupCompletedConstraint) {
|
||||
toolBox->addTool(q->action("remove"));
|
||||
q->enableAction("remove", false);
|
||||
q->enableAction("remove", (q->immutability() == Mutable && q->containmentType() == Plasma::Containment::PanelContainment));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user