From 691c0ecf79b97f40a1781e1ce5bc17a2c3ce618e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Fri, 9 Oct 2020 22:32:30 +0200 Subject: [PATCH] Fixes strict reset list bug in VM Device Settings fixes QubesOS/qubes-issues#6115 --- qubesmanager/device_list.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubesmanager/device_list.py b/qubesmanager/device_list.py index 284ddc2..c32fd24 100644 --- a/qubesmanager/device_list.py +++ b/qubesmanager/device_list.py @@ -47,8 +47,8 @@ class PCIDeviceListWindow(ui_devicelist.Ui_Dialog, QtWidgets.QDialog): 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)