Skip to content
Snippets Groups Projects
Commit d6f42411 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent a traceback which happen with obscure reasons. Fixes #5366

parent 8ddd6a29
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment