Fix getting device GUI name in the GUI to not use the classmethod, as some drivers (MTP) require it to be an instance method.

This commit is contained in:
Kovid Goyal 2012-09-03 13:44:24 +05:30
parent f9dec96a16
commit bc7de03717

View File

@ -977,7 +977,7 @@ class DeviceMixin(object): # {{{
self.set_default_thumbnail(\
self.device_manager.device.THUMBNAIL_HEIGHT)
self.status_bar.show_message(_('Device: ')+\
self.device_manager.device.__class__.get_gui_name()+\
self.device_manager.device.get_gui_name()+\
_(' detected.'), 3000)
self.device_connected = device_kind
self.library_view.set_device_connected(self.device_connected)