mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
After adding books always select the most recently added book. Fixes #789343 (mismatch between cover browser and main list)
This commit is contained in:
parent
82021c246f
commit
c6cf633758
@ -317,6 +317,7 @@ class AddAction(InterfaceAction):
|
||||
_('Uploading books to device.'), 2000)
|
||||
if getattr(self._adder, 'number_of_books_added', 0) > 0:
|
||||
self.gui.library_view.model().books_added(self._adder.number_of_books_added)
|
||||
self.gui.library_view.set_current_row(0)
|
||||
if hasattr(self.gui, 'db_images'):
|
||||
self.gui.db_images.reset()
|
||||
self.gui.tags_view.recount()
|
||||
@ -338,7 +339,6 @@ class AddAction(InterfaceAction):
|
||||
self.gui.library_view.model().current_changed(current_idx,
|
||||
current_idx)
|
||||
|
||||
|
||||
if getattr(self._adder, 'critical', None):
|
||||
det_msg = []
|
||||
for name, log in self._adder.critical.items():
|
||||
|
Loading…
x
Reference in New Issue
Block a user