Minor change in MyForm.rerenderAddressBook
This commit is contained in:
parent
0bd1fe5a9c
commit
376783603a
|
@ -1918,10 +1918,10 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
for address in sorted(
|
for address in sorted(
|
||||||
oldRows, key=lambda x: oldRows[x][2], reverse=True
|
oldRows, key=lambda x: oldRows[x][2], reverse=True
|
||||||
):
|
):
|
||||||
if address in newRows:
|
try:
|
||||||
completerList.append(
|
completerList.append(
|
||||||
newRows.pop(address)[0] + " <" + address + ">")
|
newRows.pop(address)[0] + " <" + address + ">")
|
||||||
else:
|
except KeyError:
|
||||||
self.ui.tableWidgetAddressBook.removeRow(oldRows[address][2])
|
self.ui.tableWidgetAddressBook.removeRow(oldRows[address][2])
|
||||||
for address in newRows:
|
for address in newRows:
|
||||||
addRow(address, newRows[address][0], newRows[address][1])
|
addRow(address, newRows[address][0], newRows[address][1])
|
||||||
|
|
Reference in New Issue
Block a user