Changed checking for VM name in use

In near future the old way will stop working, so
this is a pre-emptive fix.
This commit is contained in:
Marta Marczykowska-Górecka 2019-07-29 21:52:40 +02:00
父節點 afa9ebd728
當前提交 b19d9e1373
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 9A752C30B26FD04B

查看文件

@ -135,12 +135,10 @@ class NewVmDlg(QtGui.QDialog, Ui_NewVMDlg):
else 'StandaloneVM')
name = str(self.name.text())
try:
self.app.domains[name]
except LookupError:
pass
else:
QtGui.QMessageBox.warning(None,
if name in self.app.domains:
QtGui.QMessageBox.warning(
None,
self.tr('Incorrect qube name!'),
self.tr('A qube with the name <b>{}</b> already exists in the '
'system!').format(name))