mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 10:25:34 +01:00
...
This commit is contained in:
parent
f17f6886a6
commit
4bd730cca6
1 changed files with 2 additions and 1 deletions
|
|
@ -622,7 +622,7 @@ def __init__(self, initial_choice='html', parent=None):
|
|||
|
||||
self.ok_button = bb.button(bb.Ok)
|
||||
|
||||
self.file_data = ''
|
||||
self.file_data = b''
|
||||
self.using_template = False
|
||||
|
||||
def show_error(self, msg):
|
||||
|
|
@ -637,6 +637,7 @@ def import_file(self):
|
|||
self.file_data = f.read()
|
||||
name = os.path.basename(path)
|
||||
self.name.setText(name)
|
||||
self.la.setText(_('Choose a name for the imported file'))
|
||||
|
||||
@property
|
||||
def name_is_ok(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue