Simplify if-statement

This commit is contained in:
Florian Bruhin 2016-05-08 22:18:14 +02:00
parent 165504c1f2
commit 89c7b0e7f8

View File

@ -490,11 +490,8 @@ class HintManager(QObject):
url: The URL to open as a QUrl.
context: The HintContext to use.
"""
if (context.target == Target.yank_primary and
utils.supports_selection()):
sel = True
else:
sel = False
sel = (context.target == Target.yank_primary and
utils.supports_selection())
urlstr = url.toString(QUrl.FullyEncoded | QUrl.RemovePassword)
utils.set_clipboard(urlstr, selection=sel)