* 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,7 +254,10 @@ 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()
|
||||||
|
if new_person:
|
||||||
|
new_name = new_person.getPrimaryName().getRegularName()
|
||||||
|
if new_name:
|
||||||
self.person_label.set_text( "<i>%s</i>" % new_name )
|
self.person_label.set_text( "<i>%s</i>" % new_name )
|
||||||
self.person_label.set_use_markup(gtk.TRUE)
|
self.person_label.set_use_markup(gtk.TRUE)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user