diff --git a/qubesmanager/device_list.py b/qubesmanager/device_list.py index 284ddc2d..c32fd249 100644 --- a/qubesmanager/device_list.py +++ b/qubesmanager/device_list.py @@ -47,8 +47,8 @@ def fill_device_list(self): self.device_list.addItem(text) self.ident_list[text] = ident if ident in self.no_strict_reset_list: - self.device_list.setItemSelected( - self.device_list.item(i), True) + self.device_list.item(self.device_list.count()-1).setSelected( + True) def reject(self): self.done(0)