Fix #4357 (iRiver Story not recognized by Calibre)

This commit is contained in:
Kovid Goyal 2010-01-03 14:10:51 -07:00
parent c5fa78d868
commit 42765deb10

View File

@ -260,7 +260,8 @@ class Device(DeviceConfig, DevicePlugin):
# if the device is connected without a card, the above # if the device is connected without a card, the above
# will incorrectly identify the main mem as carda # will incorrectly identify the main mem as carda
# See for example the driver for the Nook # See for example the driver for the Nook
if 'main' not in drives and 'carda' in drives: if drives.get('carda', None) is not None and \
drives.get('main', None) is None:
drives['main'] = drives.pop('carda') drives['main'] = drives.pop('carda')
drives = self.windows_open_callback(drives) drives = self.windows_open_callback(drives)