This commit is contained in:
Kovid Goyal 2010-08-31 09:35:57 -06:00
commit 4ffbec5832

View File

@ -229,6 +229,8 @@ class BooksView(QTableView): # {{{
def cleanup_sort_history(self, sort_history): def cleanup_sort_history(self, sort_history):
history = [] history = []
for col, order in sort_history: for col, order in sort_history:
if col == 'date':
col = 'timestamp'
if col in self.column_map and (not history or history[0][0] != col): if col in self.column_map and (not history or history[0][0] != col):
history.append([col, order]) history.append([col, order])
return history return history