Skip to content

Commit

Permalink
Check another reference to the editor in the mainwindow
Browse files Browse the repository at this point in the history
  • Loading branch information
andfoy committed Jul 16, 2021
1 parent 27def94 commit aaefe8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyder/app/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1501,7 +1501,7 @@ def update_edit_menu(self):
# Comment, uncomment, indent, unindent...
if not console and not_readonly:
# This is the editor and current file is writable
if self.editor:
if hasattr(self, 'editor'):
for action in self.editor.edit_menu_actions:
action.setEnabled(True)

Expand Down

0 comments on commit aaefe8d

Please sign in to comment.