From bb000ba2c3a98693ed5910c58381cdc8b6c4caa9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 27 Jun 2010 18:20:31 -0600 Subject: [PATCH] Fix regression caused by use of _new_book in USBMS --- src/calibre/devices/usbms/driver.py | 5 +++-- src/calibre/gui2/widgets.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/calibre/devices/usbms/driver.py b/src/calibre/devices/usbms/driver.py index 30629161db..a4d9486e68 100644 --- a/src/calibre/devices/usbms/driver.py +++ b/src/calibre/devices/usbms/driver.py @@ -298,8 +298,9 @@ class USBMS(CLI, Device): # Clear the _new_book indication, as we are supposed to be done with # adding books at this point for blist in booklists: - for book in blist: - book._new_book = False + if blist is not None: + for book in blist: + book._new_book = False self.report_progress(1.0, _('Sending metadata to device...')) debug_print('USBMS: finished sync_booklists') diff --git a/src/calibre/gui2/widgets.py b/src/calibre/gui2/widgets.py index 33ee25c433..9050c7dbd1 100644 --- a/src/calibre/gui2/widgets.py +++ b/src/calibre/gui2/widgets.py @@ -148,8 +148,8 @@ class FormatList(QListWidget): class ImageView(QLabel): - MAX_WIDTH = 400 - MAX_HEIGHT = 300 + MAX_WIDTH = 600 + MAX_HEIGHT = 800 DROPABBLE_EXTENSIONS = IMAGE_EXTENSIONS @classmethod