From e4e7d4eb997335949df8be9f31c68b325bc7ce45 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Mon, 21 Mar 2011 22:36:00 +0100 Subject: [PATCH] Implemented warning dialog in case an AppVM is not connected to any FwVM --- qubesmanager/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index f9a1e44..5c99615 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -813,6 +813,10 @@ class VmManagerWindow(QMainWindow): model.set_vm(vm) dialog.set_model(model) + if vm.netvm_vm is not None and not vm.netvm_vm.is_proxyvm(): + QMessageBox.warning (None, "VM configuration problem!", "The '{0}' AppVM is not network connected to a FirewallVM!

".format(vm.name) +\ + "You may edit the '{0}' VM firewall rules, but these will not take any effect until you connect it to a working Firewall VM.".format(vm.name)) + if dialog.exec_(): model.apply_rules()