* src/plugins/BookReport.py (ReportOptionsDialog.on_change_clicked):
Deal with Cancel button pressed. svn: r1632
This commit is contained in:
parent
39bfb6fbdf
commit
49150fa1f4
@ -254,9 +254,12 @@ class ReportOptionsDialog(Report.TextReportDialog):
|
|||||||
def on_change_clicked(self,obj):
|
def on_change_clicked(self,obj):
|
||||||
import SelectPerson
|
import SelectPerson
|
||||||
sel_person = SelectPerson.SelectPerson(self.db,'Select Person')
|
sel_person = SelectPerson.SelectPerson(self.db,'Select Person')
|
||||||
new_name = sel_person.run().getPrimaryName().getRegularName()
|
new_person = sel_person.run()
|
||||||
self.person_label.set_text( "<i>%s</i>" % new_name )
|
if new_person:
|
||||||
self.person_label.set_use_markup(gtk.TRUE)
|
new_name = new_person.getPrimaryName().getRegularName()
|
||||||
|
if new_name:
|
||||||
|
self.person_label.set_text( "<i>%s</i>" % new_name )
|
||||||
|
self.person_label.set_use_markup(gtk.TRUE)
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user