aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src
diff options
context:
space:
mode:
authorNick Dedekind <nicholas.dedekind@gmail.com>2013-08-29 10:45:50 +0100
committerNick Dedekind <nicholas.dedekind@gmail.com>2013-08-29 10:45:50 +0100
commit2eeecefecca936b286e131cfbf61b7932e982332 (patch)
tree457921cc6f3435c792e5ed25b77dd51b30ff4f13 /libqmenumodel/src
parent64ab9df1899944f9fa8970679495f9b023883173 (diff)
downloadqmenumodel-2eeecefecca936b286e131cfbf61b7932e982332.tar.gz
qmenumodel-2eeecefecca936b286e131cfbf61b7932e982332.tar.bz2
qmenumodel-2eeecefecca936b286e131cfbf61b7932e982332.zip
Let Qt manage deletion of children
Diffstat (limited to 'libqmenumodel/src')
-rw-r--r--libqmenumodel/src/unitymenumodel.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp
index 3ea61ec..93d4f4c 100644
--- a/libqmenumodel/src/unitymenumodel.cpp
+++ b/libqmenumodel/src/unitymenumodel.cpp
@@ -289,9 +289,6 @@ ActionStateParser* UnityMenuModel::actionStateParser() const
void UnityMenuModel::setActionStateParser(ActionStateParser* actionStateParser)
{
if (priv->actionStateParser != actionStateParser) {
- if (priv->actionStateParser && priv->actionStateParser->parent() == this) {
- delete priv->actionStateParser;
- }
priv->actionStateParser = actionStateParser;
Q_EMIT actionStateParserChanged(actionStateParser);
}