V0.6 #852
|
@ -3976,12 +3976,13 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
def tableWidgetBlacklistItemChanged(self, item):
|
def tableWidgetBlacklistItemChanged(self, item):
|
||||||
if item.column() == 0:
|
if item.column() == 0:
|
||||||
addressitem = self.ui.tableWidgetBlacklist.item(item.row(), 1)
|
addressitem = self.ui.tableWidgetBlacklist.item(item.row(), 1)
|
||||||
if self.ui.radioButtonBlacklist.isChecked():
|
if isinstance(addressitem, QTableWidgetItem):
|
||||||
sqlExecute('''UPDATE blacklist SET label=? WHERE address=?''',
|
if self.ui.radioButtonBlacklist.isChecked():
|
||||||
str(item.text()), str(addressitem.text()))
|
sqlExecute('''UPDATE blacklist SET label=? WHERE address=?''',
|
||||||
else:
|
str(item.text()), str(addressitem.text()))
|
||||||
sqlExecute('''UPDATE whitelist SET label=? WHERE address=?''',
|
else:
|
||||||
str(item.text()), str(addressitem.text()))
|
sqlExecute('''UPDATE whitelist SET label=? WHERE address=?''',
|
||||||
|
str(item.text()), str(addressitem.text()))
|
||||||
|
|
||||||
def updateStatusBar(self, data):
|
def updateStatusBar(self, data):
|
||||||
if data != "":
|
if data != "":
|
||||||
|
|
Reference in New Issue
Block a user