fixed CQ for bitmessageqt.networkstatus module

This commit is contained in:
coolguy-cell 2020-06-05 18:44:45 +05:30
parent e372459737
commit e237534335
No known key found for this signature in database
GPG Key ID: CD3A42E1D470AD70
1 changed files with 3 additions and 3 deletions

View File

@ -92,8 +92,8 @@ class NetworkStatus(QtGui.QWidget, RetranslateMixin):
"Object(s) to be synced: %n",
None,
QtCore.QCoreApplication.CodecForTr,
network.stats.pendingDownload() +
network.stats.pendingUpload()))
network.stats.pendingDownload()
+ network.stats.pendingUpload()))
def updateNumberOfMessagesProcessed(self):
"""Update the counter for number of processed messages"""
@ -203,7 +203,7 @@ 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:
if not BMConnectionPool().inboundConnections:
self.window().setStatusIcon('yellow')
for i in range(self.tableWidgetConnectionCount.rowCount()):
if self.tableWidgetConnectionCount.item(i, 0).data(QtCore.Qt.UserRole).toPyObject() != destination: