Added try/except for change_network
This commit is contained in:
parent
ed98a1ea6e
commit
95c74714d7
@ -651,8 +651,14 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow):
|
|||||||
info.vm.template = template
|
info.vm.template = template
|
||||||
|
|
||||||
def change_network(self, netvm):
|
def change_network(self, netvm):
|
||||||
|
try:
|
||||||
for info in self.get_selected_vms():
|
for info in self.get_selected_vms():
|
||||||
info.vm.netvm = netvm
|
info.vm.netvm = netvm
|
||||||
|
except exc.QubesValueError as ex:
|
||||||
|
QMessageBox.warning(
|
||||||
|
self,
|
||||||
|
self.tr("Change Network Error"),
|
||||||
|
self.tr((str(ex))))
|
||||||
|
|
||||||
def __init__(self, qt_app, qubes_app, dispatcher, _parent=None):
|
def __init__(self, qt_app, qubes_app, dispatcher, _parent=None):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
Loading…
Reference in New Issue
Block a user