Commit 69bbecf9 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels
Browse files

nd-notfification: fix crash when hint is real boolean

Commit 2286ebc3 was missing check
for BOOLEAN type.
parent 1e8573c2
......@@ -243,6 +243,8 @@ hint_to_boolean (NdNotification *notification,
return TRUE;
} else if (g_variant_is_of_type (value, G_VARIANT_TYPE_BYTE)) {
return (g_variant_get_byte (value) != 0);
} else if (g_variant_is_of_type (value, G_VARIANT_TYPE_BOOLEAN)) {
return g_variant_get_boolean (value);
} else {
g_assert_not_reached ();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment