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:
parent
b51cd03481
commit
4ee3c556c4
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user