eric6/WebBrowser/AdBlock/AdBlockIcon.py

changeset 7268
a28338eaf694
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7267:aedc309827c7 7268:a28338eaf694
153 if browser is None: 153 if browser is None:
154 return False 154 return False
155 155
156 urlHost = browser.page().url().host() 156 urlHost = browser.page().url().host()
157 157
158 return urlHost and \ 158 return (
159 urlHost and
159 self.__mw.adBlockManager().isHostExcepted(urlHost) 160 self.__mw.adBlockManager().isHostExcepted(urlHost)
161 )
160 162
161 def currentChanged(self): 163 def currentChanged(self):
162 """ 164 """
163 Public slot to handle a change of the current browser tab. 165 Public slot to handle a change of the current browser tab.
164 """ 166 """

eric ide

mercurial