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:
parent
8ecfc801de
commit
0de5d23864
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user