Fix Addressbook context menu delete
This commit is contained in:
parent
41ac1b89d1
commit
a5456f792c
|
@ -3347,8 +3347,8 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
normal = True
|
normal = True
|
||||||
for row in self.ui.tableWidgetAddressBook.selectedIndexes():
|
for row in self.ui.tableWidgetAddressBook.selectedIndexes():
|
||||||
currentRow = row.row()
|
currentRow = row.row()
|
||||||
type = str(self.ui.tableWidgetAddressBook.item(
|
type = self.ui.tableWidgetAddressBook.item(
|
||||||
currentRow, 0).data(Qt.UserRole).toPyObject())
|
currentRow, 0).type
|
||||||
if type != AccountMixin.NORMAL:
|
if type != AccountMixin.NORMAL:
|
||||||
normal = False
|
normal = False
|
||||||
if normal:
|
if normal:
|
||||||
|
|
Reference in New Issue
Block a user