From 7c5322b852b5c602d099f3f374cca6368cff55cd Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Fri, 20 Feb 2015 21:47:27 +0100 Subject: [PATCH] Reset the alignment map when switching libraries. This prevents non-left alignments from taking effect in the newly-opened library. --- src/calibre/gui2/library/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index 37259b6214..808c5974fd 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -256,6 +256,7 @@ class BooksModel(QAbstractTableModel): # {{{ def set_database(self, db): self.ids_to_highlight = [] + self.alignment_map = {} self.ids_to_highlight_set = set() self.current_highlighted_idx = None self.db = db