From 8cc7800aae94828f797a29b529eec4c8594e4010 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Mon, 13 Oct 2008 22:57:23 +0000 Subject: [PATCH] actually add the actions to the menu svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=871120 --- appletbrowser.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/appletbrowser.cpp b/appletbrowser.cpp index 3a1a3a1dd..c9f640e42 100644 --- a/appletbrowser.cpp +++ b/appletbrowser.cpp @@ -323,7 +323,7 @@ void AppletBrowserWidget::destroyApplets(const QString &name) void AppletBrowserWidget::downloadWidgets(const QString &type) { - kDebug() << type; + //kDebug() << type; PackageStructure *installer = 0; if (!type.isEmpty()) { @@ -396,10 +396,11 @@ void AppletBrowserPrivate::populateWidgetsMenu() KService::List offers = KServiceTypeTrader::self()->query("Plasma/PackageStructure"); foreach (const KService::Ptr service, offers) { + //kDebug() << service->property("X-Plasma-ProvidesWidgetBrowser"); if (service->property("X-Plasma-ProvidesWidgetBrowser").toBool()) { QAction *action = new QAction(KIcon("applications-internet"), - i18n("Download New %1 Widgets", service->name()), q); - QObject::connect(action, SIGNAL(triggered(bool)), mapper, SLOT(map())); + i18n("Download New %1", service->name()), q); + widgetsMenu->addAction(action); mapper->setMapping(action, service->property("X-KDE-PluginInfo-Name").toString()); } }