Boot from device window fix

The window wasn't closing properly.
This commit is contained in:
Marta Marczykowska-Górecka 2018-02-11 00:20:14 +01:00
parent 82323ca5ed
commit 8640fa7ace
No known key found for this signature in database
GPG Key ID: 9A752C30B26FD04B

View File

@ -70,6 +70,8 @@ class VMBootFromDeviceWindow(ui_bootfromdevice.Ui_BootDialog, QtGui.QDialog):
qvm_start.main(['--cdrom', cdrom_location, self.vm.name])
self.done(0)
def __warn_if_running__(self):
if self.vm.is_running():
QtGui.QMessageBox.warning(