Fix #1055129 (Xoom MTP 'Send to Main' send to SDCARD)

This commit is contained in:
Kovid Goyal 2012-09-24 08:09:24 +05:30
parent 761cb5509c
commit 50e9e1f768

View File

@ -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']