aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src
diff options
context:
space:
mode:
authorNick Dedekind <nick.dedekind@canonical.com>2016-10-04 13:17:20 +0100
committerNick Dedekind <nick.dedekind@canonical.com>2016-10-04 13:17:20 +0100
commit388be5be7f75b06578074d7a0f6e80caf06f31cb (patch)
tree51e3ba56419bd2a0d7c1b11768c52ec06a9b0e37 /libqmenumodel/src
parent97b75c99800fed0de7600169c99893c4be25a1c9 (diff)
downloadqmenumodel-388be5be7f75b06578074d7a0f6e80caf06f31cb.tar.gz
qmenumodel-388be5be7f75b06578074d7a0f6e80caf06f31cb.tar.bz2
qmenumodel-388be5be7f75b06578074d7a0f6e80caf06f31cb.zip
better boolean check
Diffstat (limited to 'libqmenumodel/src')
-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 8b64ee2..6a75f40 100644
--- a/libqmenumodel/src/unitymenumodel.cpp
+++ b/libqmenumodel/src/unitymenumodel.cpp
@@ -483,13 +483,13 @@ QVariant UnityMenuModel::data(const QModelIndex &index, int role) const
return gtk_menu_tracker_item_get_role (item) == GTK_MENU_TRACKER_ITEM_ROLE_RADIO;
case IsToggledRole:
- return gtk_menu_tracker_item_get_toggled (item) == TRUE ? true : false;
+ return gtk_menu_tracker_item_get_toggled (item) != FALSE;
case ShortcutRole:
return QKeySequence(gtk_menu_tracker_item_get_accel (item), QKeySequence::NativeText);
case HasSubmenuRole:
- return gtk_menu_tracker_item_get_has_submenu (item) == TRUE ? true : false;
+ return gtk_menu_tracker_item_get_has_submenu (item) != FALSE;
default:
return QVariant();