Remove unneeded int().

See #706.
This commit is contained in:
Florian Bruhin 2015-05-30 22:51:00 +02:00
parent 3c8e616eb9
commit 3879b8301f

View File

@ -487,7 +487,7 @@ class WebView(QWebView):
old_scroll_pos = self.scroll_pos
flags = QWebPage.FindFlags(flags)
found = self.findText(text, flags)
backward = int(flags) & QWebPage.FindBackward
backward = flags & QWebPage.FindBackward
if not found and not flags & QWebPage.HighlightAllOccurrences and text:
# User disabled wrapping; but findText() just returns False. If we