BlackWhitelist rerendering
It used to show entries with no address. Fixes #170
This commit is contained in:
parent
c5eb7f5d5e
commit
cb28fa1b6a
|
@ -2033,6 +2033,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
queryreturn = sqlQuery('''SELECT label, address, enabled FROM blacklist''')
|
queryreturn = sqlQuery('''SELECT label, address, enabled FROM blacklist''')
|
||||||
else:
|
else:
|
||||||
queryreturn = sqlQuery('''SELECT label, address, enabled FROM whitelist''')
|
queryreturn = sqlQuery('''SELECT label, address, enabled FROM whitelist''')
|
||||||
|
self.ui.tableWidgetBlacklist.setSortingEnabled(False)
|
||||||
for row in queryreturn:
|
for row in queryreturn:
|
||||||
label, address, enabled = row
|
label, address, enabled = row
|
||||||
self.ui.tableWidgetBlacklist.insertRow(0)
|
self.ui.tableWidgetBlacklist.insertRow(0)
|
||||||
|
@ -2047,6 +2048,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
if not enabled:
|
if not enabled:
|
||||||
newItem.setTextColor(QtGui.QColor(128, 128, 128))
|
newItem.setTextColor(QtGui.QColor(128, 128, 128))
|
||||||
self.ui.tableWidgetBlacklist.setItem(0, 1, newItem)
|
self.ui.tableWidgetBlacklist.setItem(0, 1, newItem)
|
||||||
|
self.ui.tableWidgetBlacklist.setSortingEnabled(True)
|
||||||
|
|
||||||
def click_pushButtonTTL(self):
|
def click_pushButtonTTL(self):
|
||||||
QtGui.QMessageBox.information(self, 'Time To Live', _translate(
|
QtGui.QMessageBox.information(self, 'Time To Live', _translate(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user