From e4078d427a70a0aa4ab811c19df65632d5847646 Mon Sep 17 00:00:00 2001 From: mailchuck Date: Sun, 20 Dec 2015 21:31:30 +0100 Subject: [PATCH] Disable label rerendering in messagelist It's broken and just consumes resources. I'll fix it separately. --- src/bitmessageqt/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 7adc8dcd..a031451e 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -1980,6 +1980,7 @@ class MyForm(settingsmixin.SMainWindow): os._exit(0) def rerenderInboxFromLabels(self): + return for i in range(self.ui.tableWidgetInbox.rowCount()): addressToLookup = self.ui.tableWidgetInbox.item( i, 1).data(Qt.UserRole) @@ -2020,6 +2021,7 @@ class MyForm(settingsmixin.SMainWindow): def rerenderInboxToLabels(self): + return for i in range(self.ui.tableWidgetInbox.rowCount()): toAddress = self.ui.tableWidgetInbox.item( i, 0).data(Qt.UserRole) @@ -2043,6 +2045,7 @@ class MyForm(settingsmixin.SMainWindow): i, 0).setTextColor(QApplication.palette().text().color()) def rerenderSentFromLabels(self): + return for i in range(self.ui.tableWidgetInbox.rowCount()): fromAddress = self.ui.tableWidgetInbox.item( i, 1).data(Qt.UserRole) @@ -2057,6 +2060,7 @@ class MyForm(settingsmixin.SMainWindow): i, 1).setIcon(avatarize(fromAddress)) def rerenderSentToLabels(self): + return for i in range(self.ui.tableWidgetInbox.rowCount()): addressToLookup = self.ui.tableWidgetInbox.item( i, 0).data(Qt.UserRole)