mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-29 12:05:12 +01:00
Fix #7423 (Author dropdown contains pipe delimited names)
This commit is contained in:
commit
210c95daae
1 changed files with 2 additions and 1 deletions
|
|
@ -389,7 +389,8 @@ def set_database(self, db):
|
|||
self.save_state()
|
||||
self._model.set_database(db)
|
||||
self.tags_delegate.set_database(db)
|
||||
self.authors_delegate.set_auto_complete_function(db.all_authors)
|
||||
self.authors_delegate.set_auto_complete_function(
|
||||
lambda: [(x, y.replace('|', ',')) for (x, y) in db.all_authors()])
|
||||
self.series_delegate.set_auto_complete_function(db.all_series)
|
||||
self.publisher_delegate.set_auto_complete_function(db.all_publishers)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue