Addressbook exception fix

The avatar was throwing an exception.
This commit is contained in:
mailchuck 2016-04-28 23:05:07 +02:00 committed by Peter Surda
parent 61ae94098d
commit b8667864f5
1 changed files with 1 additions and 0 deletions

View File

@ -476,4 +476,5 @@ class Ui_AddressBookWidgetItemLabel(Ui_AddressBookWidgetItem):
class Ui_AddressBookWidgetItemAddress(Ui_AddressBookWidgetItem):
def __init__ (self, address, label, type):
Ui_AddressBookWidgetItem.__init__(self, address, type)
self.address = address
self.setFlags(QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEnabled)