153 self.__cookieJar.clear() |
153 self.__cookieJar.clear() |
154 self.__domainDict = {} |
154 self.__domainDict = {} |
155 self.cookiesTree.clear() |
155 self.cookiesTree.clear() |
156 |
156 |
157 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
157 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
158 def on_cookiesTree_currentItemChanged(self, current, previous): |
158 def on_cookiesTree_currentItemChanged(self, current, _previous): |
159 """ |
159 """ |
160 Private slot to handle a change of the current item. |
160 Private slot to handle a change of the current item. |
161 |
161 |
162 @param current reference to the current item |
162 @param current reference to the current item |
163 @type QTreeWidgetItem |
163 @type QTreeWidgetItem |
164 @param previous reference to the previous current item |
164 @param _previous reference to the previous current item (unused) |
165 @type QTreeWidgetItem |
165 @type QTreeWidgetItem |
166 """ |
166 """ |
167 self.addButton.setEnabled(current is not None) |
167 self.addButton.setEnabled(current is not None) |
168 self.removeButton.setEnabled(current is not None) |
168 self.removeButton.setEnabled(current is not None) |
169 |
169 |