Ensure a menu pointer is passed to actionsFromMenu
svn path=/trunk/KDE/kdelibs/; revision=1002154
This commit is contained in:
parent
16bf535e5e
commit
139c3abdc4
@ -227,6 +227,8 @@ void AbstractRunner::clearActions()
|
||||
|
||||
QList<QAction*> AbstractRunner::actionsFromMenu(QMenu *menu, const QString &prefix)
|
||||
{
|
||||
Q_ASSERT(menu);
|
||||
|
||||
QList<QAction*> ret;
|
||||
foreach (QAction *action, menu->actions()) {
|
||||
if (QMenu *submenu = action->menu()) {
|
||||
|
Loading…
Reference in New Issue
Block a user