Fixes strict reset list bug in VM Device Settings

fixes QubesOS/qubes-issues#6115
This commit is contained in:
Marta Marczykowska-Górecka 2020-10-09 22:32:30 +02:00
parent b813998990
commit 691c0ecf79
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -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)