Template should not be enabled for running VMs in VM Settings

This commit is contained in:
Marta Marczykowska-Górecka 2020-03-26 16:51:41 +01:00
parent 08d1435eea
commit 96e75b350a
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -400,6 +400,9 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtWidgets.QDialog):
self.template_name.setEnabled(False)
self.template_idx = -1
if self.vm.is_running():
self.template_name.setEnabled(False)
self.netvm_list, self.netvm_idx = utils.prepare_vm_choice(
self.netVM,
self.vm, 'netvm',