Minor change in MyForm.rerenderAddressBook

This commit is contained in:
Dmitri Bogomolov 2018-03-01 17:26:30 +02:00
parent 0bd1fe5a9c
commit 376783603a
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13

View File

@ -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])