Fix plugboard problem where customizations to formats accepted by a device were ignored.

This commit is contained in:
Charles Haley 2011-10-05 06:48:38 +02:00
parent 8d1feb9be2
commit 2389b6fd78

View File

@ -58,7 +58,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
self.device_to_formats_map = {}
for device in device_plugins():
n = device_name_for_plugboards(device)
self.device_to_formats_map[n] = set(device.FORMATS)
self.device_to_formats_map[n] = set(device.settings().format_map)
if getattr(device, 'CAN_DO_DEVICE_DB_PLUGBOARD', False):
self.device_to_formats_map[n].add('device_db')
if n not in self.devices: