V0.6 #852
|
@ -132,7 +132,10 @@ class Ui_AddressWidget(QtGui.QTreeWidgetItem):
|
||||||
reverse = False
|
reverse = False
|
||||||
if self.treeWidget().header().sortIndicatorOrder() == QtCore.Qt.DescendingOrder:
|
if self.treeWidget().header().sortIndicatorOrder() == QtCore.Qt.DescendingOrder:
|
||||||
reverse = True
|
reverse = True
|
||||||
if shared.config.getboolean(self.address, 'enabled') == shared.config.getboolean(other.address, 'enabled'):
|
if shared.config.getboolean(self.address, 'enabled') == \
|
||||||
|
shared.config.getboolean(other.address, 'enabled'):
|
||||||
|
if shared.safeConfigGetBoolean(self.address, 'mailinglist') == \
|
||||||
|
shared.safeConfigGetBoolean(other.address, 'mailinglist'):
|
||||||
if shared.config.get(self.address, 'label'):
|
if shared.config.get(self.address, 'label'):
|
||||||
x = shared.config.get(self.address, 'label').decode('utf-8').lower()
|
x = shared.config.get(self.address, 'label').decode('utf-8').lower()
|
||||||
else:
|
else:
|
||||||
|
@ -142,6 +145,8 @@ class Ui_AddressWidget(QtGui.QTreeWidgetItem):
|
||||||
else:
|
else:
|
||||||
y = other.address.decode('utf-8').lower()
|
y = other.address.decode('utf-8').lower()
|
||||||
return x < y
|
return x < y
|
||||||
|
else:
|
||||||
|
return (reverse if shared.safeConfigGetBoolean(self.address, 'mailinglist') else not reverse)
|
||||||
# else:
|
# else:
|
||||||
return (not reverse if shared.config.getboolean(self.address, 'enabled') else reverse)
|
return (not reverse if shared.config.getboolean(self.address, 'enabled') else reverse)
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user