aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src/unitymenuaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libqmenumodel/src/unitymenuaction.cpp')
-rw-r--r--libqmenumodel/src/unitymenuaction.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libqmenumodel/src/unitymenuaction.cpp b/libqmenumodel/src/unitymenuaction.cpp
index 46edf16..6f564d1 100644
--- a/libqmenumodel/src/unitymenuaction.cpp
+++ b/libqmenumodel/src/unitymenuaction.cpp
@@ -59,9 +59,7 @@ UnityMenuModel* UnityMenuAction::model() const
void UnityMenuAction::setModel(UnityMenuModel* model)
{
if (m_model != model) {
- if (!model) {
- unregisterAction();
- }
+ unregisterAction();
m_model = model;
registerAction();
Q_EMIT modelChanged(model);