prevent a traceback which happen with obscure reasons. Fixes #5366
This commit is contained in:
parent
8ddd6a298b
commit
d6f4241102
|
@ -764,6 +764,9 @@ class MessageWindow(object):
|
|||
old_ctrl.set_control_active(False)
|
||||
|
||||
new_ctrl = self._widget_to_control(notebook.get_nth_page(page_num))
|
||||
if not new_ctrl:
|
||||
# This event is sometimes exposed without any reason. see #5366
|
||||
return
|
||||
new_ctrl.set_control_active(True)
|
||||
self.show_title(control = new_ctrl)
|
||||
|
||||
|
|
Loading…
Reference in New Issue