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 Aug 31, 2021
1 parent 6deae4c commit 47df2c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spyder/plugins/editor/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,7 @@ def get_plugin_actions(self):
find_previous_action,
replace_action,
gotoline_action]

self.main.search_toolbar_actions = [find_action,
find_next_action,
replace_action]
Expand All @@ -1081,6 +1082,10 @@ def get_plugin_actions(self):
self.text_lowercase_action]

# ---- Search 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 = (
search_menu_actions + self.main.search_menu_actions)

Expand Down

0 comments on commit 47df2c9

Please sign in to comment.