aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src/qdbusmenumodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libqmenumodel/src/qdbusmenumodel.cpp')
-rw-r--r--libqmenumodel/src/qdbusmenumodel.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/libqmenumodel/src/qdbusmenumodel.cpp b/libqmenumodel/src/qdbusmenumodel.cpp
index abf259f..b404d0b 100644
--- a/libqmenumodel/src/qdbusmenumodel.cpp
+++ b/libqmenumodel/src/qdbusmenumodel.cpp
@@ -99,12 +99,8 @@ void QDBusMenuModel::serviceAppear(GDBusConnection *connection)
busName().toUtf8().data(),
objectPath().toUtf8().data()));
setMenuModel(model);
- if (model == NULL) {
- stop();
- } else {
- //setModel take care of the ref
- g_object_unref(model);
- }
+ //setModel take care of the ref
+ g_object_unref(model);
}
/*! \internal */