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:
parent
cc1ce3961d
commit
c0718a484d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user