From 4bd730cca640298c47ee50e9856c376b5716f2cc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 15 Dec 2013 09:07:43 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/file_list.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/file_list.py b/src/calibre/gui2/tweak_book/file_list.py index 9e65f95747..1ab76745a2 100644 --- a/src/calibre/gui2/tweak_book/file_list.py +++ b/src/calibre/gui2/tweak_book/file_list.py @@ -622,7 +622,7 @@ class NewFileDialog(QDialog): # {{{ 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 @@ class NewFileDialog(QDialog): # {{{ 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):