Merge remote-tracking branch 'qubesos/pr/54'
* qubesos/pr/54: Fixed minor error in VM Settings
This commit is contained in:
commit
90f7f8474d
@ -114,6 +114,8 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
|
||||
self.delete_rule_button_pressed)
|
||||
self.policy_deny_radio_button.clicked.connect(self.policy_changed)
|
||||
self.policy_allow_radio_button.clicked.connect(self.policy_changed)
|
||||
if init_page == 'firewall':
|
||||
self.check_network_availability()
|
||||
|
||||
####### devices tab
|
||||
self.__init_devices_tab__()
|
||||
@ -217,8 +219,7 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
|
||||
|
||||
t_monitor.set_finished()
|
||||
|
||||
def current_tab_changed(self, idx):
|
||||
if idx == self.tabs_indices["firewall"]:
|
||||
def check_network_availability(self):
|
||||
netvm = self.vm.netvm
|
||||
self.no_netvm_label.setVisible(netvm is None)
|
||||
self.netvm_no_firewall_label.setVisible(
|
||||
@ -247,6 +248,9 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
|
||||
"a working Firewall VM.").format(
|
||||
vm=self.vm.name, netvm=netvm.name))
|
||||
|
||||
def current_tab_changed(self, idx):
|
||||
if idx == self.tabs_indices["firewall"]:
|
||||
self.check_network_availability()
|
||||
|
||||
######### basic tab
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user