Skip to content

Commit

Permalink
Merge pull request #367 from ccordoba12/fix-typeerror
Browse files Browse the repository at this point in the history
Fix TypeError in completion widget
  • Loading branch information
ccordoba12 committed Aug 22, 2019
2 parents b09d63f + c323153 commit 7d92b09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qtconsole/completion_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ def hideEvent(self, event):
""" Reimplemented to disconnect signal handlers and event filter.
"""
super(CompletionWidget, self).hideEvent(event)
self._text_edit.cursorPositionChanged.disconnect(self._update_current)
try:
self._text_edit.cursorPositionChanged.disconnect(self._update_current)
except TypeError:
pass
self.removeEventFilter(self)

def showEvent(self, event):
Expand Down

0 comments on commit 7d92b09

Please sign in to comment.