78 @param url URL to check |
78 @param url URL to check |
79 @type QUrl |
79 @type QUrl |
80 @return flag indicating disabled state |
80 @return flag indicating disabled state |
81 @rtype bool |
81 @rtype bool |
82 """ |
82 """ |
83 for rule in self.__documentRules: |
83 return any(rule.urlMatch(url) for rule in self.__documentRules) |
84 if rule.urlMatch(url): |
|
85 return True |
|
86 |
|
87 return False |
|
88 |
84 |
89 def elemHideDisabledForUrl(self, url): |
85 def elemHideDisabledForUrl(self, url): |
90 """ |
86 """ |
91 Public method to check, if element hiding is disabled for the given |
87 Public method to check, if element hiding is disabled for the given |
92 URL. |
88 URL. |