diff options
author | Benjamin Berg <bberg@redhat.com> | 2017-05-23 18:55:24 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2017-08-14 13:05:20 +0200 |
commit | cf4d19881505c130e4a96e3126a534f9cd384380 (patch) | |
tree | c147482ab16ed2d1cc023f909c4c616c2eed2407 /src/dfeet/introspection_helper.py | |
parent | 730473c6b55eb5dbded595e06204ede8d5577a21 (diff) | |
download | d-feet-cf4d19881505c130e4a96e3126a534f9cd384380.tar.gz |
Show values that have a logical False representation.
Correctly test whether a value has been retrieved (not None) instead of
testing whether the value is logically True to decide on showing it.
https://bugzilla.gnome.org/show_bug.cgi?id=783006
Diffstat (limited to 'src/dfeet/introspection_helper.py')
-rw-r--r-- | src/dfeet/introspection_helper.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dfeet/introspection_helper.py b/src/dfeet/introspection_helper.py index 348b772..68e3cd6 100644 --- a/src/dfeet/introspection_helper.py +++ b/src/dfeet/introspection_helper.py @@ -86,7 +86,7 @@ class DBusProperty(DBusInterface): s = "%s %s <small>(%s)</small>" % ( args_signature_markup(sig), args_name_markup(self.property_info.name), " / ".join(readwrite)) - if self.value: + if self.value is not None: s += " = %s" % (self.value,) return s |