aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel
diff options
context:
space:
mode:
authorNick Dedekind <nicholas.dedekind@gmail.com>2013-08-29 10:28:23 +0000
committerTarmac <>2013-08-29 10:28:23 +0000
commit7d013d70a079f64b010488849aee5909255d46de (patch)
tree457921cc6f3435c792e5ed25b77dd51b30ff4f13 /libqmenumodel
parent64ab9df1899944f9fa8970679495f9b023883173 (diff)
parent2eeecefecca936b286e131cfbf61b7932e982332 (diff)
downloadqmenumodel-7d013d70a079f64b010488849aee5909255d46de.tar.gz
qmenumodel-7d013d70a079f64b010488849aee5909255d46de.tar.bz2
qmenumodel-7d013d70a079f64b010488849aee5909255d46de.zip
Let Qt manage the destruction of child ActionStateParsers.
Approved by PS Jenkins bot, Lars Uebernickel.
Diffstat (limited to 'libqmenumodel')
-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);
}