aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel
diff options
context:
space:
mode:
authorMirco Müller <mirco.mueller@ubuntu.com>2013-08-01 18:48:19 +0200
committerMirco Müller <mirco.mueller@ubuntu.com>2013-08-01 18:48:19 +0200
commitc458dff48f2ae10781f587bff93e00f3b461c4da (patch)
treedcaaf6dbd274517aea5f2708b41f429d53c7d9b6 /libqmenumodel
parentd1c96de04570d8365c2ab2fde597ccd21c7a3dc2 (diff)
downloadqmenumodel-c458dff48f2ae10781f587bff93e00f3b461c4da.tar.gz
qmenumodel-c458dff48f2ae10781f587bff93e00f3b461c4da.tar.bz2
qmenumodel-c458dff48f2ae10781f587bff93e00f3b461c4da.zip
Fix exporting of boolean extended-attribute in attributeToQVariant()
Diffstat (limited to 'libqmenumodel')
-rw-r--r--libqmenumodel/src/unitymenumodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp
index 72a5985..adec861 100644
--- a/libqmenumodel/src/unitymenumodel.cpp
+++ b/libqmenumodel/src/unitymenumodel.cpp
@@ -528,7 +528,7 @@ static QVariant attributeToQVariant(GVariant *value, const QString &type)
}
if (type == "bool") {
if (g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN))
- result = QVariant(g_variant_get_int32(value));
+ result = QVariant(g_variant_get_boolean(value));
}
else if (type == "string") {
if (g_variant_is_of_type (value, G_VARIANT_TYPE_STRING))