@@ -1747,7 +1747,7 @@ def _cb_tab_changed(self, index):
17471747 self .comboAction .setVisible (index == self .TAB_MAIN )
17481748
17491749 if index != self .TAB_NETSTAT and self .LAST_TAB == self .TAB_NETSTAT :
1750- self ._unmonitor_node_netstat (self .LAST_SELECTED_ITEM )
1750+ self ._unmonitor_node_netstat (self .LAST_NETSTAT_NODE )
17511751 self .comboNetstatNodes .setCurrentIndex (0 )
17521752
17531753 if self .LAST_TAB == self .TAB_NODES and self .LAST_SELECTED_ITEM != "" :
@@ -1865,7 +1865,6 @@ def _cb_combo_netstat_changed(self, combo, idx):
18651865 self ._cfg .setSettings (Config .STATS_NETSTAT_FILTER_STATE , self .comboNetstatStates .currentIndex ())
18661866
18671867 nIdx = self .comboNetstatNodes .currentIndex ()
1868- self .LAST_NETSTAT_NODE = self .comboNetstatNodes .itemData (nIdx )
18691868
18701869 def _cb_limit_combo_changed (self , idx ):
18711870 if self .tabWidget .currentIndex () == self .TAB_MAIN :
@@ -2105,6 +2104,7 @@ def _cb_table_double_clicked(self, row):
21052104 data = row .model ().index (row .row (), self .COL_NET_PROC ).data ()
21062105 if data == "" :
21072106 return
2107+ self ._unmonitor_node_netstat (self .LAST_NETSTAT_NODE )
21082108 self .tabWidget .setCurrentIndex (cur_idx )
21092109
21102110 self ._set_active_widgets (cur_idx , True , str (data ))
@@ -2944,7 +2944,7 @@ def _monitor_node_netstat(self):
29442944 if nid != None :
29452945 self ._notifications_sent [nid ] = noti
29462946
2947- self .LAST_SELECTED_ITEM = node_addr
2947+ self .LAST_NETSTAT_NODE = node_addr
29482948
29492949 def _unmonitor_node_netstat (self , node_addr ):
29502950 self .netstatLabel .hide ()
@@ -2968,6 +2968,8 @@ def _unmonitor_node_netstat(self, node_addr):
29682968 if nid != None :
29692969 self ._notifications_sent [nid ] = noti
29702970
2971+ self .LAST_NETSTAT_NODE = None
2972+
29712973 def _update_netstat_table (self , node_addr , data ):
29722974 netstat = json .loads (data )
29732975 fields = []
0 commit comments