Skip to content

Commit

Permalink
Merge pull request #17832 from procitec/pyside_fixes5
Browse files Browse the repository at this point in the history
PR: Fix “Source → Show warning/error list” action (Pyside2)
  • Loading branch information
ccordoba12 committed May 6, 2022
2 parents c7cdbfc + d39f0d4 commit 396efa5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spyder/plugins/editor/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,8 @@ def update_warning_menu(self):
text = message[:1].upper() + message[1:]
icon = ima.icon('error') if error else ima.icon('warning')
slot = lambda _checked, _l=line_number: self.load(filename, goto=_l)
action = create_action(self, text=text, icon=icon, triggered=slot)
action = create_action(self, text=text, icon=icon)
action.triggered[bool].connect(slot)
self.warning_menu.addAction(action)

def update_todo_menu(self):
Expand Down

0 comments on commit 396efa5

Please sign in to comment.