This commit is contained in:
Kovid Goyal 2013-12-15 09:07:43 +05:30
parent f17f6886a6
commit 4bd730cca6

View File

@ -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):