Fixed error in VM settings

fixes QubesOS/qubes-issues#4951
This commit is contained in:
Marta Marczykowska-Górecka 2019-04-05 21:35:46 +02:00
parent f4d0417e1a
commit 6b6621abfc
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -969,8 +969,8 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
try:
old_devs = list(self.vm.devices['pci'].persistent())
new_devs = [item.dev
for item in self.dev_list.selected_list.items()]
new_devs = [self.dev_list.selected_list.item(i).dev
for i in range(self.dev_list.selected_list.count())]
for dev in new_devs:
if dev not in old_devs: