diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py
index bc280f5..d6dcb9f 100644
--- a/qubesmanager/qube_manager.py
+++ b/qubesmanager/qube_manager.py
@@ -814,6 +814,17 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow):
info.vm.template = template
def change_network(self, netvm_name):
+ selected_vms = self.get_selected_vms()
+ reply = QMessageBox.question(
+ self, self.tr("Network Change Confirmation"),
+ self.tr("Do you want to change '{0}'
"
+ "to Network '{1}'?").format(
+ ', '.join(vm.name for vm in selected_vms), netvm_name),
+ QMessageBox.Yes | QMessageBox.Cancel)
+
+ if reply != QMessageBox.Yes:
+ return
+
try:
check_power = any(info.state['power'] == 'Running' for info
in self.get_selected_vms())