From 6e9e4b1b5c66ea4d61c1f42562425cef84495a26 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 15 Jun 2010 07:51:42 -0600 Subject: [PATCH] Fix regression in uploading book to device --- src/calibre/gui2/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/device.py b/src/calibre/gui2/device.py index c8eb4c2403..b3a7196b20 100644 --- a/src/calibre/gui2/device.py +++ b/src/calibre/gui2/device.py @@ -1409,7 +1409,7 @@ class DeviceMixin(object): # {{{ # Set author_sort if it isn't already asort = getattr(book, 'author_sort', None) if not asort and book.authors: - book.author_sort = self.db.author_sort_from_authors(book.authors) + book.author_sort = self.library_view.model().db.author_sort_from_authors(book.authors) resend_metadata = True if resend_metadata: