aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Dedekind <nicholas.dedekind@gmail.com>2013-08-09 18:52:48 +0100
committerNick Dedekind <nicholas.dedekind@gmail.com>2013-08-09 18:52:48 +0100
commit62514129ef270f9fcc7c2be628fd2f7ec5c2199a (patch)
tree5635edf31a799cc23911a2f671e8e0fe600e43a0
parent73223bd13a14860433a65bec186057d044b4a8e5 (diff)
downloadqmenumodel-62514129ef270f9fcc7c2be628fd2f7ec5c2199a.tar.gz
qmenumodel-62514129ef270f9fcc7c2be628fd2f7ec5c2199a.tar.bz2
qmenumodel-62514129ef270f9fcc7c2be628fd2f7ec5c2199a.zip
use correct qvariant types for sensitive and isSeparator roles
-rw-r--r--libqmenumodel/src/unitymenumodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp
index 5226747..b1c9a6a 100644
--- a/libqmenumodel/src/unitymenumodel.cpp
+++ b/libqmenumodel/src/unitymenumodel.cpp
@@ -433,10 +433,10 @@ QVariant UnityMenuModel::data(const QModelIndex &index, int role) const
return gtk_menu_tracker_item_get_label (item);
case SensitiveRole:
- return gtk_menu_tracker_item_get_sensitive (item);
+ return gtk_menu_tracker_item_get_sensitive (item) == TRUE ? true : false;
case IsSeparatorRole:
- return gtk_menu_tracker_item_get_is_separator (item);
+ return gtk_menu_tracker_item_get_is_separator (item) == TRUE ? true : false;
case IconRole: {
GIcon *icon = gtk_menu_tracker_item_get_icon (item);