diff options
author | Mirco Müller <mirco.mueller@ubuntu.com> | 2013-08-05 14:33:32 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-08-05 14:33:32 +0200 |
commit | 73223bd13a14860433a65bec186057d044b4a8e5 (patch) | |
tree | f5f919f174b9662490622ca925b7a129b53931fd /libqmenumodel | |
parent | 248ae8dd5cd8320c82b4f85d0d7a3aba43a207c1 (diff) | |
parent | c458dff48f2ae10781f587bff93e00f3b461c4da (diff) | |
download | qmenumodel-73223bd13a14860433a65bec186057d044b4a8e5.tar.gz qmenumodel-73223bd13a14860433a65bec186057d044b4a8e5.tar.bz2 qmenumodel-73223bd13a14860433a65bec186057d044b4a8e5.zip |
Fix exporting of boolean extended-attribute in attributeToQVariant()
Diffstat (limited to 'libqmenumodel')
-rw-r--r-- | libqmenumodel/src/unitymenumodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp index c7afa2c..5226747 100644 --- a/libqmenumodel/src/unitymenumodel.cpp +++ b/libqmenumodel/src/unitymenumodel.cpp @@ -550,7 +550,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)) |