aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-08 16:25:49 +0200
committerOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-08 16:25:49 +0200
commitd2ec6532acec6b555ec43354e3f1ed30bd7501c1 (patch)
tree8d8868e96b9a77a0009a1103cd7a32340ca79a8c /libqmenumodel
parentbc7eb612da5fb089c84840e8a1fc4bc0f20784ad (diff)
downloadqmenumodel-d2ec6532acec6b555ec43354e3f1ed30bd7501c1.tar.gz
qmenumodel-d2ec6532acec6b555ec43354e3f1ed30bd7501c1.tar.bz2
qmenumodel-d2ec6532acec6b555ec43354e3f1ed30bd7501c1.zip
Ensure the model is set before advertising the status as 'Connected'.
Diffstat (limited to 'libqmenumodel')
-rw-r--r--libqmenumodel/src/qdbusobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqmenumodel/src/qdbusobject.cpp b/libqmenumodel/src/qdbusobject.cpp
index 4ee568f..ecb8ee9 100644
--- a/libqmenumodel/src/qdbusobject.cpp
+++ b/libqmenumodel/src/qdbusobject.cpp
@@ -180,8 +180,8 @@ void QDBusObject::onServiceAppeared(GDBusConnection *connection, const gchar *,
{
QDBusObject *self = reinterpret_cast<QDBusObject*>(data);
- self->setStatus(DBusEnums::Connected);
self->serviceAppear(connection);
+ self->setStatus(DBusEnums::Connected);
}
void QDBusObject::onServiceVanished(GDBusConnection *connection, const gchar *, gpointer data)