Better fix for bug 7122.

This commit is contained in:
John Ralls 2014-02-20 13:53:33 -08:00
parent 608aca8e65
commit 62a19e4cd9

View File

@ -199,6 +199,8 @@ def mac_setup_localization(glocale):
apple_collation = _mac_get_gramps_defaults("Global",
"AppleCollationOrder")
if not apple_collation:
return (None, None)
apple_collation = apple_collation.strip()
if not apple_collation or apple_collation.startswith("root"):
return (None, None)