diff options
Diffstat (limited to 'libqmenumodel/src/qmenumodel.cpp')
-rw-r--r-- | libqmenumodel/src/qmenumodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqmenumodel/src/qmenumodel.cpp b/libqmenumodel/src/qmenumodel.cpp index 1e8238b..8735e6c 100644 --- a/libqmenumodel/src/qmenumodel.cpp +++ b/libqmenumodel/src/qmenumodel.cpp @@ -91,7 +91,7 @@ void QMenuModel::clearModel() m_menuModel = NULL; } - QList<QMenuModel*> list = findChildren<QMenuModel*>(); + QList<QMenuModel*> list = findChildren<QMenuModel*>(QString(), Qt::FindDirectChildrenOnly); Q_FOREACH(QMenuModel *model, list) { delete model; } |