Fix check for reloads on Qt < 5.11

This was broken in 6ccd69dad2
This commit is contained in:
Florian Bruhin 2018-06-08 08:53:10 +02:00
parent a13618fe2a
commit 91b4106dcf

View File

@ -1084,7 +1084,7 @@ class WebEngineTab(browsertab.AbstractTab):
if qtutils.version_check('5.11.1', compiled=False):
reload_needed = False
elif not qtutils.version_check('5.11.0', exact=True, compiled=False):
if navigation.navigation_type != navigation.Type.link_clicked:
if navigation.navigation_type == navigation.Type.link_clicked:
reload_needed = False
if reload_needed: