mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix another regression in manage authors related to which column is selected.
This commit is contained in:
parent
dcf699e9b4
commit
860280ec2d
@ -231,13 +231,13 @@ class EditAuthorsDialog(QDialog, Ui_EditAuthorsDialog):
|
||||
# Position on the desired item
|
||||
if id_to_select:
|
||||
select_item = None
|
||||
use_as = tweaks['categories_use_field_for_author_name']
|
||||
use_as = tweaks['categories_use_field_for_author_name'] == 'author_sort'
|
||||
for row in range(0, len(auts_to_show)):
|
||||
if is_first_letter:
|
||||
item_txt = unicode_type(self.table.item(row, 1).text() if use_as
|
||||
else self.table.item(row, 0).text())
|
||||
if primary_startswith(item_txt, id_to_select):
|
||||
select_item = self.table.item(row, 1)
|
||||
select_item = self.table.item(row, 1 if use_as else 0)
|
||||
break
|
||||
elif id_to_select == self.table.item(row, 0).data(Qt.UserRole):
|
||||
if select_sort:
|
||||
|
@ -398,7 +398,6 @@ class TagBrowserMixin(object): # {{{
|
||||
for t in get_authors_func(use_virtual_library=False):
|
||||
if t[1] == id_:
|
||||
id_ = t[0]
|
||||
select_sort = True
|
||||
break
|
||||
editor = EditAuthorsDialog(parent, db, id_, select_sort, select_link,
|
||||
get_authors_func, is_first_letter)
|
||||
|
Loading…
x
Reference in New Issue
Block a user