Do not allow the user to eject the device from calibre if there are device jobs running

This commit is contained in:
Kovid Goyal 2010-05-20 10:47:18 -06:00
parent 00f4a0f4eb
commit 5ae9181f2b

View File

@ -161,7 +161,7 @@ class DeviceManager(Thread):
print 'Device connect failed again, giving up'
def umount_device(self, *args):
if self.is_device_connected:
if self.is_device_connected and not self.job_manager.has_device_jobs():
self.connected_device.eject()
self.ejected_devices.add(self.connected_device)
self.connected_slot(False, self.connected_device_is_folder)