From 58dc106004875e2fb710db2c0cbc3a286a7db71c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 10 Jun 2017 22:44:10 +0530 Subject: [PATCH] Fix editing the authors via the book list not respecting the tweak to control author name splitting --- src/calibre/gui2/library/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/library/models.py b/src/calibre/gui2/library/models.py index a79cf47a15..0ef6f9aae4 100644 --- a/src/calibre/gui2/library/models.py +++ b/src/calibre/gui2/library/models.py @@ -1161,6 +1161,8 @@ class BooksModel(QAbstractTableModel): # {{{ val = val.split(',') self.db.set_languages(id, val) else: + if column == 'authors' and val: + val = authors_to_string(string_to_authors(val)) books_to_refresh |= self.db.set(row, column, val, allow_case_change=True) self.refresh_ids(list(books_to_refresh), row)