First remove VM from qubes.xml (#765)

So it will be removed regardless whether removing the files failed or
not.
This commit is contained in:
Marek Marczykowski-Górecki 2014-02-23 00:46:48 +01:00
parent cc1ce3961d
commit c0718a484d

View File

@ -1382,9 +1382,9 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow):
if vm.is_netvm() and self.qvm_collection.default_netvm_qid == vm.qid:
self.qvm_collection.default_netvm_qid = None
vm.remove_from_disk()
self.qvm_collection.pop(vm.qid)
self.qvm_collection.save()
vm.remove_from_disk()
except Exception as ex:
thread_monitor.set_error_msg (str(ex))
finally: