Update
svn: r1822
This commit is contained in:
parent
76714fd062
commit
d33bb7839c
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# Gramps - a GTK+/GNOME based genealogy program
|
||||||
#
|
#
|
||||||
# Copyright (C) 2000 Donald N. Allingham
|
# Copyright (C) 2000-2003 Donald N. Allingham
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -679,7 +679,10 @@ class BookReportSelector:
|
|||||||
if not iter:
|
if not iter:
|
||||||
return
|
return
|
||||||
data = self.av_model.get_data(iter,range(self.av_ncols))
|
data = self.av_model.get_data(iter,range(self.av_ncols))
|
||||||
data.append(self.person.getPrimaryName().getRegularName())
|
if data[1] == _("Title"):
|
||||||
|
data.append(_("Not Applicable"))
|
||||||
|
else:
|
||||||
|
data.append(self.person.getPrimaryName().getRegularName())
|
||||||
self.bk_model.add(data)
|
self.bk_model.add(data)
|
||||||
item = BookItem(data[0])
|
item = BookItem(data[0])
|
||||||
options = item.get_options()
|
options = item.get_options()
|
||||||
@ -749,7 +752,7 @@ class BookReportSelector:
|
|||||||
style_name = item.get_style_name()
|
style_name = item.get_style_name()
|
||||||
opt_dlg = options_dialog(self.db,self.person,options,style_name)
|
opt_dlg = options_dialog(self.db,self.person,options,style_name)
|
||||||
opt_dlg.window.destroy()
|
opt_dlg.window.destroy()
|
||||||
if opt_dlg.person:
|
if opt_dlg.person and data[1] != _("Title"):
|
||||||
self.bk_model.model.set_value(iter,2,
|
self.bk_model.model.set_value(iter,2,
|
||||||
opt_dlg.person.getPrimaryName().getRegularName())
|
opt_dlg.person.getPrimaryName().getRegularName())
|
||||||
item.set_options(opt_dlg.options)
|
item.set_options(opt_dlg.options)
|
||||||
|
Loading…
Reference in New Issue
Block a user