mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-25 20:03:07 +02:00
Fix (I hope) template program_text retrieval when not running from source
This commit is contained in:
parent
e8592b2f90
commit
1bfe6b06d7
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ def function_index_changed(self, txt):
|
|||
self.argument_count.setValue(func.arg_count)
|
||||
self.documentation.setText(func.doc)
|
||||
if txt in self.builtins:
|
||||
if hasattr(func, 'program_text'):
|
||||
if hasattr(func, 'program_text') and func.program_text:
|
||||
self.program.setPlainText(func.program_text)
|
||||
elif txt in self.builtin_source_dict:
|
||||
self.program.setPlainText(self.builtin_source_dict[txt])
|
||||
|
|
|
|||
Loading…
Reference in a new issue