Don't reset template when changing type during qube creation
This commit is contained in:
		
							parent
							
								
									e73015e557
								
							
						
					
					
						commit
						e18e9ee998
					
				| @ -233,6 +233,7 @@ class NewVmDlg(QtWidgets.QDialog, Ui_NewVMDlg): | ||||
|         # AppVM | ||||
|         if self.vm_type.currentIndex() == 0: | ||||
|             self.template_vm.setEnabled(True) | ||||
|             if self.template_vm.currentIndex() == -1: | ||||
|                 self.template_vm.setCurrentIndex(0) | ||||
|             self.install_system.setEnabled(False) | ||||
|             self.install_system.setChecked(False) | ||||
| @ -240,6 +241,7 @@ class NewVmDlg(QtWidgets.QDialog, Ui_NewVMDlg): | ||||
|         # Standalone - based on a template | ||||
|         if self.vm_type.currentIndex() == 1: | ||||
|             self.template_vm.setEnabled(True) | ||||
|             if self.template_vm.currentIndex() == -1: | ||||
|                 self.template_vm.setCurrentIndex(0) | ||||
|             self.install_system.setEnabled(False) | ||||
|             self.install_system.setChecked(False) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 MSathieu
						MSathieu