Fix of issue 2475
svn: r11222
This commit is contained in:
parent
f3e82dbdec
commit
0abc9ed68c
@ -134,6 +134,10 @@ class DbLoader:
|
|||||||
format_name = plugin.get_name()
|
format_name = plugin.get_name()
|
||||||
|
|
||||||
choose_db_dialog.add_filter(mime_filter)
|
choose_db_dialog.add_filter(mime_filter)
|
||||||
|
# There might be multiple entries in mime_types
|
||||||
|
# Add only formats not already in list, so user don't get confused
|
||||||
|
# with multiple entries
|
||||||
|
if not mime_types[0] in format_list:
|
||||||
format_list.append(mime_types[0])
|
format_list.append(mime_types[0])
|
||||||
_KNOWN_FORMATS[mime_types[0]] = [format_name, mime_types[1:]]
|
_KNOWN_FORMATS[mime_types[0]] = [format_name, mime_types[1:]]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user