diff --git a/src/plasma/containment.cpp b/src/plasma/containment.cpp --- a/src/plasma/containment.cpp +++ b/src/plasma/containment.cpp @@ -122,7 +122,12 @@ QAction *configAction = actions()->action(QStringLiteral("configure")); if (configAction) { - configAction->setText(i18nc("%1 is the name of the applet", "Configure %1...", title())); + if (d->type == Types::PanelContainment || d->type == Types::CustomPanelContainment) { + configAction->setText(i18nc("%1 is the name of the containment", "Edit %1...", title())); + configAction->setIcon(QIcon::fromTheme(QStringLiteral("document-edit"))); + } else { + configAction->setText(i18nc("%1 is the name of the applet", "Configure %1...", title())); + } } QAction *appletBrowserAction = actions()->action(QStringLiteral("add widgets")); diff --git a/src/scriptengines/qml/plasmoid/containmentinterface.cpp b/src/scriptengines/qml/plasmoid/containmentinterface.cpp --- a/src/scriptengines/qml/plasmoid/containmentinterface.cpp +++ b/src/scriptengines/qml/plasmoid/containmentinterface.cpp @@ -1129,34 +1129,9 @@ } } - QMenu *containmentMenu = new QMenu(i18nc("%1 is the name of the containment", "%1 Options", m_containment->title()), desktopMenu); if (m_containment->containmentType() != Plasma::Types::DesktopContainment) { - addContainmentActions(containmentMenu, event); - } - - if (!containmentMenu->isEmpty()) { - int enabled = 0; - //count number of real actions - QListIterator actionsIt(containmentMenu->actions()); - while (enabled < 3 && actionsIt.hasNext()) { - QAction *action = actionsIt.next(); - if (action->isVisible() && !action->isSeparator()) { - ++enabled; - } - } - - if (enabled) { - //if there is only one, don't create a submenu - if (enabled < 2) { - foreach (QAction *action, containmentMenu->actions()) { - if (action->isVisible() && !action->isSeparator()) { - desktopMenu->addAction(action); - } - } - } else { - desktopMenu->addMenu(containmentMenu); - } - } + desktopMenu->addSeparator(); + addContainmentActions(desktopMenu, event); } if (m_containment->immutability() == Plasma::Types::Mutable &&