mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Copy to library: Fix title sort not being copied
This commit is contained in:
parent
83fcb8b96b
commit
9e04a6a609
@ -175,7 +175,6 @@ class CopyToLibraryAction(InterfaceAction):
|
|||||||
return error_dialog(self.gui, _('No library'),
|
return error_dialog(self.gui, _('No library'),
|
||||||
_('No library found at %s')%loc, show=True)
|
_('No library found at %s')%loc, show=True)
|
||||||
|
|
||||||
|
|
||||||
self.pd = ProgressDialog(_('Copying'), min=0, max=len(ids)-1,
|
self.pd = ProgressDialog(_('Copying'), min=0, max=len(ids)-1,
|
||||||
parent=self.gui, cancelable=False)
|
parent=self.gui, cancelable=False)
|
||||||
|
|
||||||
|
@ -2063,6 +2063,8 @@ class LibraryDatabase2(LibraryDatabase, SchemaUpgrade, CustomColumns):
|
|||||||
if path_changed:
|
if path_changed:
|
||||||
self.set_path(id, index_is_id=True)
|
self.set_path(id, index_is_id=True)
|
||||||
|
|
||||||
|
if should_replace_field('title_sort'):
|
||||||
|
self.set_title_sort(id, mi.title_sort, notify=False, commit=False)
|
||||||
if should_replace_field('author_sort'):
|
if should_replace_field('author_sort'):
|
||||||
doit(self.set_author_sort, id, mi.author_sort, notify=False,
|
doit(self.set_author_sort, id, mi.author_sort, notify=False,
|
||||||
commit=False)
|
commit=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user