Skip to content

Commit

Permalink
Rename references (enthought#539 cont.)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesloibl committed Jul 1, 2022
1 parent a1d2b16 commit fae180f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyface/ui/qt4/application_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def _menu_bar_manager_updated(self, event):
def _status_bar_manager_updated(self, event):
if self.control is not None:
if event.old is not None:
event.old.destroy_status_bar()
event.old.destroy()
self._create_status_bar(self.control)

@observe("tool_bar_manager, tool_bar_managers.items")
Expand Down
2 changes: 1 addition & 1 deletion pyface/ui/wx/application_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def _status_bar_manager_changed(self, old, new):
if self.control is not None:
if old is not None:
self.control.SetStatusBar(None)
old.remove_status_bar(self.control)
old.destroy(self.control)
self._create_status_bar(self.control)

@observe("tool_bar_manager, tool_bar_managers.items")
Expand Down

0 comments on commit fae180f

Please sign in to comment.