From abdce202eaa9d1f444b14afd66920f3af214d51e Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Tue, 31 Aug 2010 09:44:52 +0100 Subject: [PATCH] Fix sort_columns_at_startup tweak problem where the column 'date' was ignored. --- src/calibre/gui2/library/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/library/views.py b/src/calibre/gui2/library/views.py index 389208fdcd..966180467c 100644 --- a/src/calibre/gui2/library/views.py +++ b/src/calibre/gui2/library/views.py @@ -229,6 +229,8 @@ class BooksView(QTableView): # {{{ def cleanup_sort_history(self, sort_history): 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): history.append([col, order]) return history