6258: Error during start of Gramps for certain LANG values
svn: r20949
This commit is contained in:
parent
d6214118e2
commit
cc878faf8f
@ -216,7 +216,7 @@ class PluginDialog(ManagedWindow):
|
||||
for key in key_list:
|
||||
data = item_hash[key]
|
||||
node = self.store.insert_after(None, prev)
|
||||
self.store.set(node, 0, key)
|
||||
self.store.set(node, 0, key[1])
|
||||
next = None
|
||||
data.sort(key=lambda k:k.name)
|
||||
for item in data:
|
||||
|
@ -205,7 +205,7 @@ class ReportDialog(ManagedWindow):
|
||||
def get_title(self):
|
||||
"""The window title for this dialog"""
|
||||
name = self.report_name
|
||||
category = standalone_categories[self.category]
|
||||
category = standalone_categories[self.category][1]
|
||||
return "%s - %s - Gramps" % (name, category)
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
@ -644,7 +644,6 @@ def report(dbstate, uistate, person, report_class, options_class,
|
||||
task be in the format of task that takes a database and a person as
|
||||
its arguments.
|
||||
"""
|
||||
|
||||
if require_active and not person:
|
||||
ErrorDialog(
|
||||
_('Active person has not been set'),
|
||||
|
@ -1821,8 +1821,8 @@ class ViewManager(CLIManager):
|
||||
# and the unsupported category at the end of the menu
|
||||
if _UNSUPPORTED in hash_data:
|
||||
ofile.write('<separator/>')
|
||||
ofile.write('<menu action="%s">' % _UNSUPPORTED)
|
||||
actions.append((_UNSUPPORTED, None, _UNSUPPORTED))
|
||||
ofile.write('<menu action="%s">' % _UNSUPPORTED[0])
|
||||
actions.append((_UNSUPPORTED[0], None, _UNSUPPORTED[1]))
|
||||
pdatas = hash_data[_UNSUPPORTED]
|
||||
pdatas.sort(key=lambda x: x.name)
|
||||
for pdata in pdatas:
|
||||
|
Loading…
Reference in New Issue
Block a user