diff options
author | Nick Dedekind <nicholas.dedekind@gmail.com> | 2013-08-29 10:28:23 +0000 |
---|---|---|
committer | Tarmac <> | 2013-08-29 10:28:23 +0000 |
commit | 7d013d70a079f64b010488849aee5909255d46de (patch) | |
tree | 457921cc6f3435c792e5ed25b77dd51b30ff4f13 /libqmenumodel | |
parent | 64ab9df1899944f9fa8970679495f9b023883173 (diff) | |
parent | 2eeecefecca936b286e131cfbf61b7932e982332 (diff) | |
download | qmenumodel-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.cpp | 3 |
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); } |