Fixed incorrect default dispvm settings

Fixed error in DispVM selection in VM settings

fixes QubesOS/qubes-issues#3565
This commit is contained in:
Marta Marczykowska-Górecka 2018-02-10 22:54:00 +01:00
parent 82323ca5ed
commit 8da0d35110
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -572,7 +572,7 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
self.kernel_groupbox.setVisible(True)
self.kernel_list, self.kernel_idx = utils.prepare_kernel_choice(
self.kernel, self.vm, 'kernel',
self.vm.app.default_kernel,
None,
allow_default=True, allow_none=True)
self.kernel.currentIndexChanged.connect(self.kernel_changed)
else:
@ -588,8 +588,8 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
utils.prepare_vm_choice(
self.default_dispvm,
self.vm, 'default_dispvm',
self.vm.app.default_dispvm,
(lambda vm: vm.klass == 'DispVM'),
None,
(lambda vm: getattr(vm, 'template_for_dispvms', False)),
allow_default=True, allow_none=True)
self.update_virt_mode_list()