Fix the row numbers in the book list remaining wide when switching libraries if some books were marked before the switch. Fixes #1369152 [Column width behaviour](https://bugs.launchpad.net/calibre/+bug/1369152)

This commit is contained in:
Kovid Goyal 2014-09-14 10:22:11 +05:30
parent 3004603cd4
commit 9713536660

View File

@ -769,6 +769,10 @@ class BooksView(QTableView): # {{{
self.restore_state() self.restore_state()
self.set_ondevice_column_visibility() self.set_ondevice_column_visibility()
# incase there were marked books
self.model().set_row_decoration(set())
self.row_header.headerDataChanged(Qt.Vertical, 0, self.row_header.count()-1)
self.row_header.geometriesChanged.emit()
# }}} # }}}
# Context Menu {{{ # Context Menu {{{