From 4ee3c556c479befda39f1d3f101954b8931ac781 Mon Sep 17 00:00:00 2001 From: Saswat Padhi Date: Thu, 26 Sep 2019 18:29:31 -0700 Subject: [PATCH] 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. --- qubesmanager/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index 256845fb..71a88fd0 100644 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -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)