mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-03 03:24:35 +12:00
Minor bug
This commit is contained in:
parent
7f60a7efda
commit
5664ad3a02
|
@ -76,7 +76,6 @@ class textEditCompleter(textEditView):
|
||||||
a.triggered.connect(self.popupCompleter)
|
a.triggered.connect(self.popupCompleter)
|
||||||
menu.insertSeparator(menu.actions()[0])
|
menu.insertSeparator(menu.actions()[0])
|
||||||
menu.insertAction(menu.actions()[0], a)
|
menu.insertAction(menu.actions()[0], a)
|
||||||
|
|
||||||
return menu
|
return menu
|
||||||
|
|
||||||
def keyPressEvent(self, event):
|
def keyPressEvent(self, event):
|
||||||
|
|
|
@ -415,11 +415,6 @@ class textEditView(QTextEdit):
|
||||||
|
|
||||||
def contextMenuEvent(self, event):
|
def contextMenuEvent(self, event):
|
||||||
# Based on http://john.nachtimwald.com/2009/08/22/qplaintextedit-with-in-line-spell-check/
|
# 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 = self.createStandardContextMenu()
|
||||||
popup_menu.exec_(event.globalPos())
|
popup_menu.exec_(event.globalPos())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue