mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-01 09:26:32 +02:00
Fix file selection dialogs not choosing the correct file extension filter by default
This commit is contained in:
parent
fa603d130c
commit
0b4d97a8a4
1 changed files with 2 additions and 0 deletions
|
|
@ -342,6 +342,8 @@ def __init__(self, title='Choose Files',
|
|||
ftext += '%s (%s);;'%(text, ' '.join(extensions))
|
||||
if add_all_files_filter or not ftext:
|
||||
ftext += 'All files (*)'
|
||||
if ftext.endswith(';;'):
|
||||
ftext = ftext[:-2]
|
||||
|
||||
self.dialog_name = name if name else 'dialog_' + title
|
||||
self.selected_files = None
|
||||
|
|
|
|||
Loading…
Reference in a new issue