mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-25 15:05:15 +01: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
1 changed files with 1 additions and 1 deletions
|
|
@ -317,6 +317,7 @@ def _files_added(self, paths=[], names=[], infos=[], on_card=None):
|
|||
_('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 @@ def _files_added(self, paths=[], names=[], infos=[], on_card=None):
|
|||
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…
Reference in a new issue