Show the previous VM name while renaming

Currently while renaming VMs, the default text is empty "". This change modifies this default text to the original name of the VM.
This commit is contained in:
Saswat Padhi 2019-09-26 18:29:31 -07:00 committed by GitHub
parent b51cd03481
commit 4ee3c556c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -594,7 +594,8 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtWidgets.QDialog):
new_vm_name, ok = QtWidgets.QInputDialog.getText( new_vm_name, ok = QtWidgets.QInputDialog.getText(
self, self,
self.tr('Rename qube'), self.tr('Rename qube'),
self.tr('New name: (WARNING: all other changes will be discarded)')) self.tr('New name: (WARNING: all other changes will be discarded)'),
text=self.vm.name)
if ok: if ok:
thread = RenameVMThread(self.vm, new_vm_name, dependencies) thread = RenameVMThread(self.vm, new_vm_name, dependencies)