Close dialog after finish qvm_start()

If not user has few seconds of unresponsive manager
This commit is contained in:
donoban 2021-03-14 14:02:31 +01:00
parent 012256d446
commit f050c9d78c
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -233,9 +233,6 @@ class NewVmDlg(QtWidgets.QDialog, Ui_NewVMDlg):
self.progress.show() self.progress.show()
def create_finished(self): def create_finished(self):
self.progress.hide()
self.done(0)
if self.thread.msg: if self.thread.msg:
QtWidgets.QMessageBox.warning( QtWidgets.QMessageBox.warning(
self, self,
@ -251,6 +248,8 @@ class NewVmDlg(QtWidgets.QDialog, Ui_NewVMDlg):
['--cdrom', self.boot_dialog.cdrom_location, ['--cdrom', self.boot_dialog.cdrom_location,
self.name.text()]) self.name.text()])
self.progress.hide()
self.done(0)
def type_change(self): def type_change(self):
template = self.template_vm.currentData() template = self.template_vm.currentData()