Skip to content
Snippets Groups Projects
Commit ce702154 authored by inso's avatar inso
Browse files

Fixed sorting error with UIDs column

parent 7f472be0
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,11 @@ class TxFilterProxyModel(QSortFilterProxyModel):
return self.sortOrder() == Qt.DescendingOrder
elif right_data == "":
return self.sortOrder() == Qt.AscendingOrder
if left_data.__class__ is Person:
left_data = left_data.name
if right_data.__class__ is Person:
right_data = right_data.name
return (left_data < right_data)
def data(self, index, role):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment