Minor bug

This commit is contained in:
Olivier Keshavjee 2015-07-14 12:29:13 +02:00
parent 7f60a7efda
commit 5664ad3a02
2 changed files with 0 additions and 6 deletions

View file

@ -76,7 +76,6 @@ class textEditCompleter(textEditView):
a.triggered.connect(self.popupCompleter)
menu.insertSeparator(menu.actions()[0])
menu.insertAction(menu.actions()[0], a)
return menu
def keyPressEvent(self, event):

View file

@ -415,11 +415,6 @@ class textEditView(QTextEdit):
def contextMenuEvent(self, event):
# Based on http://john.nachtimwald.com/2009/08/22/qplaintextedit-with-in-line-spell-check/
if not self.spellcheck:
QTextEdit.contextMenuEvent(self, event)
return
popup_menu = self.createStandardContextMenu()
popup_menu.exec_(event.globalPos())