146 if item is None or \ |
146 if item is None or \ |
147 not self.__subscription.canEditRules() or \ |
147 not self.__subscription.canEditRules() or \ |
148 item == self.__topItem: |
148 item == self.__topItem: |
149 return |
149 return |
150 |
150 |
151 offset = item.data(0, Qt.UserRole) |
151 offset = item.data(0, Qt.UserRole) |
152 self.__subscription.removeRule(offset) |
152 self.__subscription.removeRule(offset) |
153 self.deleteItem(item) |
153 self.deleteItem(item) |
154 |
154 |
155 def __contextMenuRequested(self, pos): |
155 def __contextMenuRequested(self, pos): |
156 """ |
156 """ |