From cddee3cbf2f0ef03f6744db4f912d8e0a2ddd942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80lex=20Fiestas?= Date: Wed, 18 Dec 2013 21:35:03 +0100 Subject: [PATCH] Use KActionCollection::addAction instead of add I'm not sure for what reason this was changed but it is clearly wrong, we don't want to create a new action but rather re-add (as the hack says) the action we took before. Fixes "Empty action" in toolbox. --- src/plasma/private/applet_p.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plasma/private/applet_p.cpp b/src/plasma/private/applet_p.cpp index 8c5466925..b3efcf257 100644 --- a/src/plasma/private/applet_p.cpp +++ b/src/plasma/private/applet_p.cpp @@ -250,7 +250,7 @@ void AppletPrivate::updateShortcuts() for (int i = 0; i < names.size(); ++i) { QAction *a = qactions.at(i); if (a) { - actions->add(names.at(i), a); + actions->addAction(names.at(i), a); } } } else {