From f5187e16a098f0c9d61c290862017153bb0ea8a9 Mon Sep 17 00:00:00 2001 From: mailchuck Date: Sun, 24 Jan 2016 10:55:08 +0100 Subject: [PATCH] BlackWhitelist rerendering It used to show entries with no address. Fixes #170 --- src/bitmessageqt/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index cf697a5d..a23ecbb2 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -2032,6 +2032,7 @@ class MyForm(settingsmixin.SMainWindow): queryreturn = sqlQuery('''SELECT label, address, enabled FROM blacklist''') else: queryreturn = sqlQuery('''SELECT label, address, enabled FROM whitelist''') + self.ui.tableWidgetBlacklist.setSortingEnabled(False) for row in queryreturn: label, address, enabled = row self.ui.tableWidgetBlacklist.insertRow(0) @@ -2046,6 +2047,7 @@ class MyForm(settingsmixin.SMainWindow): if not enabled: newItem.setTextColor(QtGui.QColor(128, 128, 128)) self.ui.tableWidgetBlacklist.setItem(0, 1, newItem) + self.ui.tableWidgetBlacklist.setSortingEnabled(True) def click_pushButtonTTL(self): QtGui.QMessageBox.information(self, 'Time To Live', _translate(