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 """ |