From e237534335d66748b27fb6251faf6cb72912ebd1 Mon Sep 17 00:00:00 2001 From: coolguy-cell Date: Fri, 5 Jun 2020 18:44:45 +0530 Subject: [PATCH] fixed CQ for bitmessageqt.networkstatus module --- src/bitmessageqt/networkstatus.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bitmessageqt/networkstatus.py b/src/bitmessageqt/networkstatus.py index e8340298..685d9ff8 100644 --- a/src/bitmessageqt/networkstatus.py +++ b/src/bitmessageqt/networkstatus.py @@ -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: