mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #764472 (Set author from author sort button ignores tweak)
This commit is contained in:
parent
17b9aa3e71
commit
89d2b56ce8
@ -278,11 +278,13 @@ class AuthorSortEdit(EnLineEdit):
|
|||||||
|
|
||||||
def copy_to_authors(self):
|
def copy_to_authors(self):
|
||||||
aus = self.current_val
|
aus = self.current_val
|
||||||
|
meth = tweaks['author_sort_copy_method']
|
||||||
if aus:
|
if aus:
|
||||||
ln, _, rest = aus.partition(',')
|
ln, _, rest = aus.partition(',')
|
||||||
if rest:
|
if rest:
|
||||||
au = rest.strip() + ' ' + ln.strip()
|
if meth in ('invert', 'nocomma'):
|
||||||
self.authors_edit.current_val = [au]
|
aus = rest.strip() + ' ' + ln.strip()
|
||||||
|
self.authors_edit.current_val = [aus]
|
||||||
|
|
||||||
def auto_generate(self, *args):
|
def auto_generate(self, *args):
|
||||||
au = unicode(self.authors_edit.text())
|
au = unicode(self.authors_edit.text())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user