mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
f17f6886a6
commit
4bd730cca6
@ -622,7 +622,7 @@ class NewFileDialog(QDialog): # {{{
|
|||||||
|
|
||||||
self.ok_button = bb.button(bb.Ok)
|
self.ok_button = bb.button(bb.Ok)
|
||||||
|
|
||||||
self.file_data = ''
|
self.file_data = b''
|
||||||
self.using_template = False
|
self.using_template = False
|
||||||
|
|
||||||
def show_error(self, msg):
|
def show_error(self, msg):
|
||||||
@ -637,6 +637,7 @@ class NewFileDialog(QDialog): # {{{
|
|||||||
self.file_data = f.read()
|
self.file_data = f.read()
|
||||||
name = os.path.basename(path)
|
name = os.path.basename(path)
|
||||||
self.name.setText(name)
|
self.name.setText(name)
|
||||||
|
self.la.setText(_('Choose a name for the imported file'))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name_is_ok(self):
|
def name_is_ok(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user