Skip to content

Commit

Permalink
Show the previous VM name while renaming
Browse files Browse the repository at this point in the history
Currently while renaming VMs, the default text is empty "". This change modifies this default text to the original name of the VM.
  • Loading branch information
SaswatPadhi authored Sep 27, 2019
1 parent b51cd03 commit 4ee3c55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qubesmanager/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,8 @@ def rename_vm(self):
new_vm_name, ok = QtWidgets.QInputDialog.getText(
self,
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:
thread = RenameVMThread(self.vm, new_vm_name, dependencies)
Expand Down

0 comments on commit 4ee3c55

Please sign in to comment.