aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src
diff options
context:
space:
mode:
Diffstat (limited to 'libqmenumodel/src')
-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))