Merge remote-tracking branch 'qubesos/pr/171'

* qubesos/pr/171:
  Fixed error in VM settings
This commit is contained in:
Marek Marczykowski-Górecki 2019-04-05 22:10:24 +02:00
commit baeabc2e8c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

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: