Skip to content

Commit

Permalink
Prevent non-existinng search_menu_actions list
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Jul 16, 2021
1 parent 32fedbf commit e842e4d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spyder/plugins/editor/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,10 @@ def get_plugin_actions(self):
self.main.file_toolbar_actions += file_toolbar_actions

# ---- Find menu/toolbar construction ----
if not hasattr(self.main, 'search_menu_actions'):
# This list will not exist in the fast tests.
self.main.search_menu_actions = []

self.main.search_menu_actions += [find_action,
find_next_action,
find_previous_action,
Expand Down

0 comments on commit e842e4d

Please sign in to comment.