From 50e9e1f768826d6b0c9532048ad4ce9c966d258f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 24 Sep 2012 08:09:24 +0530 Subject: [PATCH] Fix #1055129 (Xoom MTP 'Send to Main' send to SDCARD) --- src/calibre/devices/mtp/windows/driver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/devices/mtp/windows/driver.py b/src/calibre/devices/mtp/windows/driver.py index 17f8a40b5b..e349ddf5e0 100644 --- a/src/calibre/devices/mtp/windows/driver.py +++ b/src/calibre/devices/mtp/windows/driver.py @@ -290,6 +290,8 @@ class MTP_DEVICE(MTPDeviceBase): raise BlacklistedDevice( 'The %s device has been blacklisted by the user'%(connected_device,)) + storage.sort(key=lambda x:x.get('id', 'zzzzz')) + self._main_id = storage[0]['id'] if len(storage) > 1: self._carda_id = storage[1]['id']