Minor changes as requested

Minor changes as requested by @marmarek
This commit is contained in:
Marta Marczykowska-Górecka 2018-07-20 17:48:39 +02:00
父節點 027abd8ac3
當前提交 5e52b16fd3
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 9A752C30B26FD04B
共有 2 個檔案被更改,包括 7 行新增7 行删除

查看文件

@ -704,7 +704,7 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
self.tr("This qube cannot be removed. It is used as:"
" <br> {} <small>If you want to remove this qube, "
"you should remove or change settings of each qube "
"or setting that uses it.</small>".format(list_text)))
"or setting that uses it.</small>").format(list_text))
info_dialog.setModal(False)
info_dialog.show()
self.qt_app.processEvents()

查看文件

@ -495,7 +495,7 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
else:
setattr(holder, prop, new_vm)
except qubesadmin.exc.QubesException as qex:
failed_props += (holder, prop)
failed_props += [(holder, prop)]
if not failed_props:
del self.vm.app.domains[self.vm.name]
@ -509,8 +509,8 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
"name. The system has now both {} and {} qubes. "
"To resolve this, please check and change the "
"following properties and remove the qube {} "
"manually.<br> ".format(
self.vm.name, name, self.vm.name) + list_text))
"manually.<br> ").format(
self.vm.name, name, self.vm.name) + list_text)
except qubesadmin.exc.QubesException as qex:
t_monitor.set_error_msg(str(qex))
@ -534,8 +534,8 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
self.tr(
"The following qubes using this qube as a template are "
"running: <br> {}. <br> In order to rename this qube, you "
"must first shut them down.".format(
", ".join(running_dependencies))))
"must first shut them down.").format(
", ".join(running_dependencies)))
return
new_vm_name, ok = QtGui.QInputDialog.getText(
@ -570,7 +570,7 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
self.tr("This qube cannot be removed. It is used as:"
" <br> {} <small>If you want to remove this qube, "
"you should remove or change settings of each qube "
"or setting that uses it.</small>".format(list_text)))
"or setting that uses it.</small>").format(list_text))
return