mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Don't crash gsettings-schema-convert for GConf schemas that contain empty elements
This can be observed in gnome-power-manager with one of the entries that contains <long></long>
This commit is contained in:
parent
f82839b8fe
commit
9717833e82
@ -792,7 +792,9 @@ class GConfSchema:
|
||||
self.short = self._get_value_with_locale(node, locale_node, 'short')
|
||||
self.long = self._get_value_with_locale(node, locale_node, 'long')
|
||||
|
||||
if self.short:
|
||||
self.short = self._oneline(self.short)
|
||||
if self.long:
|
||||
self.long = self._oneline(self.long)
|
||||
|
||||
# Fix the default to be parsable by GVariant
|
||||
|
Loading…
Reference in New Issue
Block a user