Set status icon color to yellow if last inbound connection is lost
This commit is contained in:
parent
ff020c5192
commit
c9bc97f4b2
|
@ -207,6 +207,8 @@ class NetworkStatus(QtGui.QWidget, RetranslateMixin):
|
|||
self.tableWidgetConnectionCount.item(0, 0).setData(QtCore.Qt.UserRole, destination)
|
||||
self.tableWidgetConnectionCount.item(0, 1).setData(QtCore.Qt.UserRole, outbound)
|
||||
else:
|
||||
if len(BMConnectionPool().inboundConnections) == 0:
|
||||
self.window().setStatusIcon('yellow')
|
||||
for i in range(self.tableWidgetConnectionCount.rowCount()):
|
||||
if self.tableWidgetConnectionCount.item(i, 0).data(QtCore.Qt.UserRole).toPyObject() != destination:
|
||||
continue
|
||||
|
|
Reference in New Issue
Block a user