Improve performance

This commit is contained in:
Tim Bentley 2016-05-21 20:01:50 +01:00
parent af36dc4c41
commit 6d3ad3af3f

View File

@ -142,8 +142,8 @@ class SpellTextEdit(QtWidgets.QPlainTextEdit):
"""
Replaces the selected text with word.
"""
tag = tag.replace('&', '')
for html in FormattingTags.get_html_tags():
tag = tag.replace('&', '')
if tag == html['desc']:
cursor = self.textCursor()
if self.textCursor().hasSelection():