Fix Addressbook context menu delete

This commit is contained in:
mailchuck 2015-12-01 01:09:28 +01:00
parent 4c9e2bf8bb
commit 9a2d36fc5b
Signed by untrusted user who does not match committer: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -3348,8 +3348,8 @@ class MyForm(settingsmixin.SMainWindow):
normal = True
for row in self.ui.tableWidgetAddressBook.selectedIndexes():
currentRow = row.row()
type = str(self.ui.tableWidgetAddressBook.item(
currentRow, 0).data(Qt.UserRole).toPyObject())
type = self.ui.tableWidgetAddressBook.item(
currentRow, 0).type
if type != AccountMixin.NORMAL:
normal = False
if normal: