##// END OF EJS Templates
Fixed traceback from CompletionWidget when hideEvent is received when the widget is not visible
epatters -
Show More
@@ -32,7 +32,10 b' class CompletionWidget(QtGui.QListWidget):'
32 """ Reimplemented to disconnect the cursor movement handler.
32 """ Reimplemented to disconnect the cursor movement handler.
33 """
33 """
34 QtGui.QListWidget.hideEvent(self, event)
34 QtGui.QListWidget.hideEvent(self, event)
35 self.parent().cursorPositionChanged.disconnect(self._update_current)
35 try:
36 self.parent().cursorPositionChanged.disconnect(self._update_current)
37 except TypeError:
38 pass
36
39
37 def keyPressEvent(self, event):
40 def keyPressEvent(self, event):
38 """ Reimplemented to update the list.
41 """ Reimplemented to update the list.
General Comments 0
You need to be logged in to leave comments. Login now