285 self.interfacesCombo.setEnabled( |
285 self.interfacesCombo.setEnabled( |
286 index == self.interfaceSelectorComboBox.count() - 1 |
286 index == self.interfaceSelectorComboBox.count() - 1 |
287 ) |
287 ) |
288 |
288 |
289 @pyqtSlot(QListWidgetItem, QListWidgetItem) |
289 @pyqtSlot(QListWidgetItem, QListWidgetItem) |
290 def on_allowedHostsList_currentItemChanged(self, current, previous): |
290 def on_allowedHostsList_currentItemChanged(self, current, _previous): |
291 """ |
291 """ |
292 Private method to set the state of the edit and delete button. |
292 Private method to set the state of the edit and delete button. |
293 |
293 |
294 @param current new current item |
294 @param current new current item |
295 @type QListWidgetItem |
295 @type QListWidgetItem |
296 @param previous previous current item |
296 @param _previous previous current item (unused) |
297 @type QListWidgetItem |
297 @type QListWidgetItem |
298 """ |
298 """ |
299 self.editAllowedHostButton.setEnabled(current is not None) |
299 self.editAllowedHostButton.setEnabled(current is not None) |
300 self.deleteAllowedHostButton.setEnabled(current is not None) |
300 self.deleteAllowedHostButton.setEnabled(current is not None) |
301 |
301 |