Ensure a menu pointer is passed to actionsFromMenu

svn path=/trunk/KDE/kdelibs/; revision=1002154
This commit is contained in:
Ryan P. Bitanga 2009-07-25 08:09:26 +00:00
parent 16bf535e5e
commit 139c3abdc4

View File

@ -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()) {