Fix annoying popup when unplugging PRS 500.

This commit is contained in:
Kovid Goyal 2008-05-16 10:46:44 -07:00
parent d32f4fb855
commit 0966bcdcc1

View File

@ -229,6 +229,7 @@ class Main(MainWindow, Ui_MainWindow):
else:
self.device_connected = False
self.job_manager.terminate_device_jobs()
if self.device_manager:
self.device_manager.device_removed()
self.location_view.model().update_devices()
self.action_sync.setEnabled(False)