diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-10-10 09:47:23 -0300 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-10-10 09:47:23 -0300 |
commit | 1e659aed9b6882dbe05d812363715c8e0583fc9a (patch) | |
tree | a81a067507184e479634f93c78d1256216070a6a /libqmenumodel/src/qdbusmenumodel.cpp | |
parent | c07f87e35062e39e9d4b3b978362dbf94dd36fbb (diff) | |
download | qmenumodel-1e659aed9b6882dbe05d812363715c8e0583fc9a.tar.gz qmenumodel-1e659aed9b6882dbe05d812363715c8e0583fc9a.tar.bz2 qmenumodel-1e659aed9b6882dbe05d812363715c8e0583fc9a.zip |
Created a new private function "clearModel" instead of change signature of "setModel" function.
Diffstat (limited to 'libqmenumodel/src/qdbusmenumodel.cpp')
-rw-r--r-- | libqmenumodel/src/qdbusmenumodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libqmenumodel/src/qdbusmenumodel.cpp b/libqmenumodel/src/qdbusmenumodel.cpp index 6d4746c..ae88c35 100644 --- a/libqmenumodel/src/qdbusmenumodel.cpp +++ b/libqmenumodel/src/qdbusmenumodel.cpp @@ -85,7 +85,7 @@ void QDBusMenuModel::stop() /*! \internal */ void QDBusMenuModel::serviceVanish(GDBusConnection *) { - setMenuModel(NULL, true); + setMenuModel(NULL); } /*! \internal */ @@ -94,7 +94,7 @@ void QDBusMenuModel::serviceAppear(GDBusConnection *connection) GMenuModel *model = reinterpret_cast<GMenuModel*>(g_dbus_menu_model_get(connection, busName().toLatin1(), objectPath().toLatin1())); - setMenuModel(model, true); + setMenuModel(model); if (model == NULL) { stop(); } |