From c458dff48f2ae10781f587bff93e00f3b461c4da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mirco=20M=C3=BCller?= Date: Thu, 1 Aug 2013 18:48:19 +0200 Subject: Fix exporting of boolean extended-attribute in attributeToQVariant() --- libqmenumodel/src/unitymenumodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libqmenumodel') 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)) -- cgit v1.2.3