diff options
author | Nick Dedekind <nicholas.dedekind@gmail.com> | 2013-08-12 12:13:00 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-08-12 12:13:00 +0200 |
commit | 3ded9bbbc0d26615c6d87d3de7159b87637559b5 (patch) | |
tree | 3d48dffe64a939576d287924e64fa8f9488743e2 /libqmenumodel/src | |
parent | 6bd9b6831e7046b5c414840f88aee8002be3cbb6 (diff) | |
parent | 62514129ef270f9fcc7c2be628fd2f7ec5c2199a (diff) | |
download | qmenumodel-3ded9bbbc0d26615c6d87d3de7159b87637559b5.tar.gz qmenumodel-3ded9bbbc0d26615c6d87d3de7159b87637559b5.tar.bz2 qmenumodel-3ded9bbbc0d26615c6d87d3de7159b87637559b5.zip |
use correct qvariant types for sensitive and isSeparator roles
Diffstat (limited to 'libqmenumodel/src')
-rw-r--r-- | libqmenumodel/src/unitymenumodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp index a164476..631a3c2 100644 --- a/libqmenumodel/src/unitymenumodel.cpp +++ b/libqmenumodel/src/unitymenumodel.cpp @@ -439,10 +439,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); |