Delete from addressbook only by address (Fixes: #1484)
This commit is contained in:
parent
4c7f9487e2
commit
7d0e23e31a
|
@ -3191,8 +3191,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
0].row()
|
0].row()
|
||||||
item = self.ui.tableWidgetAddressBook.item(currentRow, 0)
|
item = self.ui.tableWidgetAddressBook.item(currentRow, 0)
|
||||||
sqlExecute(
|
sqlExecute(
|
||||||
'DELETE FROM addressbook WHERE label=? AND address=?',
|
'DELETE FROM addressbook WHERE address=?', item.address)
|
||||||
item.label, item.address)
|
|
||||||
self.ui.tableWidgetAddressBook.removeRow(currentRow)
|
self.ui.tableWidgetAddressBook.removeRow(currentRow)
|
||||||
self.rerenderMessagelistFromLabels()
|
self.rerenderMessagelistFromLabels()
|
||||||
self.rerenderMessagelistToLabels()
|
self.rerenderMessagelistToLabels()
|
||||||
|
|
Reference in New Issue
Block a user