let the applet do the thinking about wether or not the config action is enabled

CCBUG:201663

svn path=/trunk/KDE/kdelibs/; revision=1003317
This commit is contained in:
Aaron J. Seigo 2009-07-28 01:09:17 +00:00
parent 8ecfc801de
commit 0de5d23864

View File

@ -577,14 +577,11 @@ void ContainmentPrivate::appletActions(KMenu &desktopMenu, Applet *applet, bool
}
}
if (applet->hasConfigurationInterface()) {
QAction *configureApplet = applet->d->actions->action("configure");
if (configureApplet) {
desktopMenu.addAction(configureApplet);
}
QAction *configureApplet = applet->d->actions->action("configure");
if (configureApplet && configureApplet->isEnabled()) {
desktopMenu.addAction(configureApplet);
}
if (static_cast<Corona*>(q->scene())->immutability() == Mutable) {
if (!desktopMenu.isEmpty()) {
desktopMenu.addSeparator();