From 9f25063ad52f95fe23a1def1cb484bc7778a7c91 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Thu, 16 Sep 2010 11:19:25 +0100 Subject: [PATCH] Fix problem with device views sometimes not updating after sync_booklists. --- src/calibre/gui2/device.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/device.py b/src/calibre/gui2/device.py index f839e1d519..36f6a7d6eb 100644 --- a/src/calibre/gui2/device.py +++ b/src/calibre/gui2/device.py @@ -1230,7 +1230,7 @@ class DeviceMixin(object): # {{{ self.location_manager.update_devices(cp, fs, self.device_manager.device.icon) # reset the views so that up-to-date info is shown. These need to be - # here because the sony driver updates collections in sync_booklists + # here because some drivers update collections in sync_booklists self.memory_view.reset() self.card_a_view.reset() self.card_b_view.reset() @@ -1470,6 +1470,7 @@ class DeviceMixin(object): # {{{ if update_metadata: if self.device_manager.is_device_connected: - self.device_manager.sync_booklists(None, booklists) + self.device_manager.sync_booklists( + Dispatcher(self.metadata_synced), booklists) # }}}