aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-11-22 08:57:18 -0300
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-11-22 08:57:18 -0300
commita8dec7920dfd655b6afb0ab7adfec4d1bd565db9 (patch)
treeb48c30da765cb5abca43a6d305c96f4f88745b90
parentf221fee6746e87e737de6f7a42334d9c8f8355a3 (diff)
downloadqmenumodel-a8dec7920dfd655b6afb0ab7adfec4d1bd565db9.tar.gz
qmenumodel-a8dec7920dfd655b6afb0ab7adfec4d1bd565db9.tar.bz2
qmenumodel-a8dec7920dfd655b6afb0ab7adfec4d1bd565db9.zip
Avoid find children recursive during the model cleanup.
-rw-r--r--libqmenumodel/src/qmenumodel.cpp2
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;
}