Reset the alignment map when switching libraries. This prevents non-left alignments from taking effect in the newly-opened library.

This commit is contained in:
Charles Haley 2015-02-20 21:47:27 +01:00
parent afd1550e7c
commit 7c5322b852

View File

@ -256,6 +256,7 @@ class BooksModel(QAbstractTableModel): # {{{
def set_database(self, db): def set_database(self, db):
self.ids_to_highlight = [] self.ids_to_highlight = []
self.alignment_map = {}
self.ids_to_highlight_set = set() self.ids_to_highlight_set = set()
self.current_highlighted_idx = None self.current_highlighted_idx = None
self.db = db self.db = db