mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Do not scroll the book list horizontally after editing metadata
Fixes #1221552 [Changing column view of boooks to title as first column when starting to "edit metadata individually"](https://bugs.launchpad.net/calibre/+bug/1221552)
This commit is contained in:
parent
7d9081a4e4
commit
f0b49de770
@ -296,6 +296,7 @@ class EditMetadataAction(InterfaceAction):
|
|||||||
list(range(self.gui.library_view.model().rowCount(QModelIndex())))
|
list(range(self.gui.library_view.model().rowCount(QModelIndex())))
|
||||||
current_row = row_list.index(cr)
|
current_row = row_list.index(cr)
|
||||||
|
|
||||||
|
with self.gui.library_view.preserve_state():
|
||||||
changed, rows_to_refresh = self.do_edit_metadata(row_list, current_row)
|
changed, rows_to_refresh = self.do_edit_metadata(row_list, current_row)
|
||||||
|
|
||||||
m = self.gui.library_view.model()
|
m = self.gui.library_view.model()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user