aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-11-23 14:56:22 -0300
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-11-23 14:56:22 -0300
commitbdc349d16b6e88c64e6ad16513f33d71bf1a643d (patch)
tree3b1d34585b17e9ee4c51f76e310e87a4fd4ee1c7
parentaa56c7b79317fb88c12fc0573fc23b6939337fe4 (diff)
downloadqmenumodel-bdc349d16b6e88c64e6ad16513f33d71bf1a643d.tar.gz
qmenumodel-bdc349d16b6e88c64e6ad16513f33d71bf1a643d.tar.bz2
qmenumodel-bdc349d16b6e88c64e6ad16513f33d71bf1a643d.zip
Removed missing function declaration.
-rw-r--r--libqmenumodel/src/qdbusmenumodel.cpp8
-rw-r--r--libqmenumodel/src/qmenumodel.h1
2 files changed, 2 insertions, 7 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 */
diff --git a/libqmenumodel/src/qmenumodel.h b/libqmenumodel/src/qmenumodel.h
index b3ef460..1ab1e7a 100644
--- a/libqmenumodel/src/qmenumodel.h
+++ b/libqmenumodel/src/qmenumodel.h
@@ -63,7 +63,6 @@ private:
QVariant getExtraProperties(const QModelIndex &index) const;
QString parseExtraPropertyName(const QString &name) const;
void clearModel();
- void setMenuModelImpl(GMenuModel *model);
static void onItemsChanged(GMenuModel *model, gint position, gint removed, gint added, gpointer data);
};