Fix spelling.

This commit is contained in:
Florian Bruhin 2015-05-13 07:17:05 +02:00
parent dd0e230a32
commit ce1b82616d

View File

@ -461,7 +461,7 @@ class WebView(QWebView):
settings = self.settings()
if settings.testAttribute(QWebSettings.CaretBrowsingEnabled):
if self.selection_enabled and self.hasSelection():
# Remove selection if exist
# Remove selection if it exists
self.triggerPageAction(QWebPage.MoveToNextChar)
settings.setAttribute(QWebSettings.CaretBrowsingEnabled, False)
self.selection_enabled = False