2043: Error on cosole output when Esc press in configure window of custom text in the book report
svn: r14626
This commit is contained in:
parent
d0803692e7
commit
a8206b52ac
@ -639,7 +639,10 @@ def report(dbstate, uistate, person, report_class, options_class,
|
|||||||
except:
|
except:
|
||||||
LOG.error("Failed to run report.", exc_info=True)
|
LOG.error("Failed to run report.", exc_info=True)
|
||||||
break
|
break
|
||||||
elif (response == gtk.RESPONSE_DELETE_EVENT or
|
elif response == gtk.RESPONSE_CANCEL:
|
||||||
response == gtk.RESPONSE_CANCEL):
|
|
||||||
dialog.close()
|
dialog.close()
|
||||||
break
|
break
|
||||||
|
elif response == gtk.RESPONSE_DELETE_EVENT:
|
||||||
|
#just stop, in ManagedWindow, delete-event is already coupled to
|
||||||
|
#correct action.
|
||||||
|
break
|
||||||
|
@ -899,12 +899,24 @@ class BookReportSelector(ManagedWindow.ManagedWindow):
|
|||||||
item.get_name(),
|
item.get_name(),
|
||||||
item.get_translated_name(),
|
item.get_translated_name(),
|
||||||
self.track)
|
self.track)
|
||||||
|
|
||||||
|
while True:
|
||||||
response = item_dialog.window.run()
|
response = item_dialog.window.run()
|
||||||
if response == gtk.RESPONSE_OK:
|
if response == gtk.RESPONSE_OK:
|
||||||
|
# dialog will be closed by connect, now continue work while
|
||||||
|
# rest of dialog is unresponsive, release when finished
|
||||||
subject = _get_subject(option_class, self.db)
|
subject = _get_subject(option_class, self.db)
|
||||||
self.book_model.model.set_value(the_iter, 2, subject)
|
self.book_model.model.set_value(the_iter, 2, subject)
|
||||||
self.book.set_item(row, item)
|
self.book.set_item(row, item)
|
||||||
item_dialog.close()
|
item_dialog.close()
|
||||||
|
break
|
||||||
|
elif response == gtk.RESPONSE_CANCEL:
|
||||||
|
item_dialog.close()
|
||||||
|
break
|
||||||
|
elif response == gtk.RESPONSE_DELETE_EVENT:
|
||||||
|
#just stop, in ManagedWindow, delete-event is already coupled to
|
||||||
|
#correct action.
|
||||||
|
break
|
||||||
|
|
||||||
def book_button_press(self, obj, event):
|
def book_button_press(self, obj, event):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user