Fixed minor error in VM Settings
When init page was 'firewall', the tool incorrectly displayed warnings about wrong firewall vm configuration, without actually checking if they should be displayed.
This commit is contained in:
		
							parent
							
								
									a84c5aba65
								
							
						
					
					
						commit
						670c41e4ff
					
				@ -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